Help with pushing out label to a group

39 views
Skip to first unread message

Azizur Rahman

unread,
Aug 29, 2019, 11:12:43 AM8/29/19
to GAM for G Suite
Hi,

I am trying to run this command:

gam user it-team label "Retentions Folder"



But when I do I get the following error:



ERROR: User it-...@xxx.com: unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.



Here are the scopes I have for the service account:


Email (Read/Write/Send)  https://mail.google.com/ 

https://www.googleapis.com/auth/activity 

View and manage the provisioning of groups on your domain  https://www.googleapis.com/auth/admin.directory.group 

View and manage the provisioning of users on your domain  https://www.googleapis.com/auth/admin.directory.user 

https://www.googleapis.com/auth/apps.alerts 

Calendar (Read-Write)  https://www.googleapis.com/auth/calendar 

https://www.googleapis.com/auth/drive 

https://www.googleapis.com/auth/gmail.settings.basic 

https://www.googleapis.com/auth/gmail.settings.sharing 

https://www.googleapis.com/auth/spreadsheets 



What am I missing? Please, can you help?



Thanks

Ross Scroggs

unread,
Aug 29, 2019, 11:14:24 AM8/29/19
to google-ap...@googlegroups.com
Do: gam user it-...@xxx.com check serviceaccount

Ros

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" 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/b58f1c1a-158f-462b-b171-2964c93419f9%40googlegroups.com.


--

Azizur Rahman

unread,
Aug 29, 2019, 11:16:49 AM8/29/19
to GAM for G Suite
oops my bad, it should be

gam group it-team...

That has fixed the issue.

Thanks!


On Thursday, August 29, 2019 at 4:14:24 PM UTC+1, Ross Scroggs wrote:
Do: gam user it-...@xxx.com check serviceaccount

Ros

On Thu, Aug 29, 2019 at 8:12 AM Azizur Rahman <azi...@confluent.io> wrote:
Hi,

I am trying to run this command:

gam user it-team label "Retentions Folder"



But when I do I get the following error:



ERROR: User it-...@xxx.com: unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.



Here are the scopes I have for the service account:


Email (Read/Write/Send)  https://mail.google.com/ 

https://www.googleapis.com/auth/activity 

View and manage the provisioning of groups on your domain  https://www.googleapis.com/auth/admin.directory.group 

View and manage the provisioning of users on your domain  https://www.googleapis.com/auth/admin.directory.user 

https://www.googleapis.com/auth/apps.alerts 

Calendar (Read-Write)  https://www.googleapis.com/auth/calendar 

https://www.googleapis.com/auth/drive 

https://www.googleapis.com/auth/gmail.settings.basic 

https://www.googleapis.com/auth/gmail.settings.sharing 

https://www.googleapis.com/auth/spreadsheets 



What am I missing? Please, can you help?



Thanks

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Ross Scroggs

James SEYMOUR

unread,
Oct 10, 2019, 8:03:59 PM10/10/19
to GAM for G Suite
Hi Azizur,

Are you trying to create labels in their contacts? I tested this command on a groups that I am in and it ran OK, but the label does not appear in my contacts.

Regards

James
Reply all
Reply to author
Forward
0 new messages