Will,No. There is no API support for this, thus GAM can' help.Ross
On Thu, Jul 29, 2021 at 12:01 PM WillW <fcps...@gmail.com> wrote:
Is there a command I can use to load a list of staff usernames and give them each Device Manger permissions to a list of ORG units?
--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/9ac7296f-a3c9-466c-99e2-466308fd733an%40googlegroups.com.
----Ross Scroggs
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS-HLLHwhAHhXezTPCPqUD1rDqsqNHqtzoD%2BAFXmE_5oiQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/1c9a9b55-ddc0-4984-b672-fc461ce13506n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/1c9a9b55-ddc0-4984-b672-fc461ce13506n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/8db2e717-a3e8-4dd8-b9d0-d0f23313cd64n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b5c4fe3b-bf0f-42db-8fe3-8aca6ee26b7an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/642039b6-20fa-4207-a128-e2044112361bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/642039b6-20fa-4207-a128-e2044112361bn%40googlegroups.com.
# gam print admins [todrive <ToDriveAttribute>*] [user <UserItem>] [role <RoleItem>]
# gam show admins [user <UserItem>] [role <RoleItem>]
use this API call: https://developers.google.com/admin-sdk/directory/reference/rest/v1/roleAssignments/list
Although undocumented, userKey and roleId are mutually exclusive.
You can use output row filtering to achieve what you want:
gam config csv_output_row_filter "roleId:regex:597407939166209" print admin user ad...@domain.com
gam config csv_output_row_filter "assignedToUser:regex:^ad...@domain.com$" print admin role id:597407939166209
Ross