Commands GAM related to other Google Application

305 views
Skip to first unread message

Julien Vidal

unread,
May 5, 2017, 4:46:03 AM5/5/17
to GAM for G Suite
Hello,

I was wondering if there are some commands that would allow to see the permissions of other applications (of the market place). 
For example, I would like to show all the applicatios that can read the Google file drive of the users.

Thank you very much for your help
Julien

Ross Scroggs

unread,
May 5, 2017, 8:54:50 AM5/5/17
to google-ap...@googlegroups.com
Julien,

The closest I see to what you're asking is gam print/show tokens
Look for scopes that start like this: https://www.googleapis.com/auth/drive

See the section labelled OAuth Tokens here: https://github.com/jay0lee/GAM/wiki/SecurityExamples

gam <UserTypeEntity> show tokens|token [clientid <ClientID>]
gam <UserTypeEntity> print tokens|token [todrive] [clientid <ClientID>]

--
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 post to this group, send email to google-ap...@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/0fc4e03e-bf06-4c68-a49e-bef76deacca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Julien Vidal

unread,
May 5, 2017, 11:26:39 AM5/5/17
to GAM for G Suite
Ross,

Right thank you very much ! 
When I test it on a client that I have created who doesn't has not authorized any special application, I can see this line on the terminal : "User: <username>, Access Tokens (1/1)". Do you know to what corresponds this Access Token ? 

Thank you again for your help.
Best regards

Ross Scroggs

unread,
May 5, 2017, 11:34:59 AM5/5/17
to google-ap...@googlegroups.com
Julien,

$ gam users testuser5,testuser6 show tokens

User: test...@rdschool.org, Access Tokens (1/2)

User: test...@rdschool.org, Access Tokens (2/2)

  Client ID: 12345.apps.googleusercontent.com

    nativeApp: False

    displayText: Google APIs Explorer

    anonymous: False

    userKey: 987654321

    scopes:

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

      https://www.googleapis.com/auth/calendar.readonly

$

The (x/y) indicates which user; testuser5 has no tokens.


You can get a CSV file.


$ gam users testuser5,testuser6 print tokens

Getting Access Tokens for test...@rdschool.org

Getting Access Tokens for test...@rdschool.org

user,clientId,displayText,anonymous,nativeApp,userKey,scopes

test...@rdschool.org,12345.apps.googleusercontent.com,Google APIs Explorer,False,False,987654321,https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/calendar.readonly

$


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.

For more options, visit https://groups.google.com/d/optout.



--

Julien Vidal

unread,
May 5, 2017, 11:52:41 AM5/5/17
to GAM for G Suite
Thanks ! 
To post to this group, send email to google-ap...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages