Add scopes to project

467 views
Skip to first unread message

Mr. L.

unread,
Jan 16, 2020, 10:53:07 AM1/16/20
to GAM for G Suite
Hello

I upgraded from GAM to GAMADV-X 4.94.10 (especially to send emails).
I managed to do this, but when I try it to send an email, there are some problems with scopes.

ERROR: Authentication Token Error - invalid_request: Invalid impersonation "sub" field.
Please make sure the Service Account Client name: project-id is authorized for the appropriate scopes:

GAM adds the opportunity to check the authentication.

gam user us...@domain.be check serviceaccount
Result: 
  Authentication                                                            PASS
Domain-Wide Delegation authentication:, User: user@domain, Scopes: 17
  https://mail.google.com/                                                  PASS (1/17)
  https://sites.google.com/feeds                                            PASS (2/17)
  https://www.google.com/m8/feeds                                           PASS (3/17)
  https://www.googleapis.com/auth/activity                                  PASS (4/17)
  https://www.googleapis.com/auth/apps.alerts                               PASS (5/17)
  https://www.googleapis.com/auth/calendar                                  PASS (6/17)
  https://www.googleapis.com/auth/classroom.announcements                   PASS (7/17)
  https://www.googleapis.com/auth/classroom.coursework.students             PASS (8/17)
  https://www.googleapis.com/auth/classroom.rosters                         PASS (9/17)
  https://www.googleapis.com/auth/classroom.topics                          PASS (10/17)
  https://www.googleapis.com/auth/contacts                                  PASS (11/17)
  https://www.googleapis.com/auth/drive                                     PASS (12/17)
  https://www.googleapis.com/auth/drive.activity                            PASS (13/17)
  https://www.googleapis.com/auth/gmail.modify                              PASS (14/17)
  https://www.googleapis.com/auth/gmail.settings.basic                      PASS (15/17)
  https://www.googleapis.com/auth/gmail.settings.sharing                    PASS (16/17)
  https://www.googleapis.com/auth/spreadsheets                              PASS (17/17)
All scopes passed!
Service Account Client name: project-id is fully authorized.

I tried to find where I can add the scopes, but I couldn't find it. Can someone help me where I can find this? 

Ross Scroggs

unread,
Jan 16, 2020, 11:22:39 AM1/16/20
to google-ap...@googlegroups.com
Mathias,

GAMADV-X is no longer supported, you should upgrade to GANMADV-XTD3(https://github.com/taers232c/GAMADV-XTD3)
Follow the directions and then try your command again.

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-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c53f1016-9de3-4a1e-8e4b-bba6eed1c1a2%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages