You can’t assign the archive license as archive is BOTH a user state and a license.
IF users are in a particular OU you can achieve with:
gam print users query "orgUnitPath='/Archived Staff' isSuspended=True isArchived=false" | gam csv - gam update user "~primaryEmail" archived on
You can also update GCDS and have that manage archiving
Regards,
Shaun Goodwin
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
google-apps-man...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/google-apps-manager/506eba1b-af57-4e45-b599-1196c4196bb7n%40googlegroups.com.