Gam - Unable to update profile picture

494 views
Skip to first unread message

Florian FAVRE

unread,
Jan 22, 2018, 11:07:49 AM1/22/18
to GAM for G Suite
Hello, 

I try to use Gam to update profile picture, but I got error below.

"ERROR: 403: Not Authorized to access this resource/api - forbidden"

I don't know why, admin API is installed on the service account what I use.

How can I manage API rights ?

During the first exection, i've had this :

Select the authorized scopes by entering a number.
Append an 'r' to grant read-only access or an 'a' to grant action-only access.

[*]  0)  Classroom API - counts as 5 scopes
[*]  1)  Cloud Print API
[*]  2)  Data Transfer API (supports readonly)
[*]  3)  Directory API - Chrome OS Devices (supports readonly)
[*]  4)  Directory API - Customers (supports readonly)
[*]  5)  Directory API - Domains (supports readonly)
[*]  6)  Directory API - Groups (supports readonly)
[*]  7)  Directory API - Mobile Devices (supports readonly and action)
[*]  8)  Directory API - Notifications
[*]  9)  Directory API - Organizational Units (supports readonly)
[*] 10)  Directory API - Resource Calendars (supports readonly)
[*] 11)  Directory API - Roles (supports readonly)
[*] 12)  Directory API - User Schemas (supports readonly)
[*] 13)  Directory API - User Security
[*] 14)  Directory API - Users (supports readonly)
[*] 15)  Email Settings API - Delegation
[*] 16)  Group Settings API
[*] 17)  License Manager API
[ ] 18)  Pub / Sub API
[*] 19)  Reports API - Audit Reports
[*] 20)  Reports API - Usage Reports
[ ] 21)  Reseller API
[*] 22)  Site Verification API
[*] 23)  Vault Matters and Holds API (supports readonly)


     s)  Select all scopes
     u)  Unselect all scopes
     e)  Exit without changes
     c)  Continue to authorization
Please enter 0-23[a|r] or s|u|e|c:

Do you know how I can do to get back this list, because I see that Direcotry API - User is set in readonly ?

Best regards,

Florian



Ross Scroggs

unread,
Jan 22, 2018, 11:19:04 AM1/22/18
to google-ap...@googlegroups.com
Florian,

[*] 14)  Directory API - Users (supports readonly)
The * indicates that the API is enabled for read/write, if it started [R] it would be enabled for read only.

What command did you issue? Using the same user specified in that command, what does this do: gam info user <putuserhere>

Ross

--
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.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/24c89f9a-6dbe-4228-a4be-f32fe5a25345%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Florian FAVRE

unread,
Jan 23, 2018, 4:33:38 AM1/23/18
to GAM for G Suite
Hello, 

my issue is solved

The command that I did execute is :

gam.exe user f-f...@siveer.fr update photo D:\Photo\f-f...@eauxdevienne.fr.jpg

The domain of the username was wrong, I've had try without domain and it working very well.

Thanks for your reply.

Florian
To post to this group, send email to google-ap...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages