admin:directory_v1 - The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.Please confirm the scope(s) you'd like to grant gShell permission to:[ ] 0 All - All scopes in this list.[√] 1 https://www.googleapis.com/auth/admin.directory.customer - View and manage customer related information[√] 2 https://www.googleapis.com/auth/admin.directory.customer.readonly - View customer related information
10:28:35PS C:\andy\scripts> get-gshelluseruserName : googleadmindomain : mydomain.comemail : mya...@mydomain.comtokenAndScopesByApi : {[admin:directory_v1, gShell.dotNet.Utilities.OAuth2.OAuth2TokenInfo]}clientSecrets :
--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Run
get-gauser user...@domain.com domain.com and now I get
get-gauser : Value cannot be null.
Parameter name: task
At line:1 char:1
+ get-gauser user...@domain.com domain.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-GAUser], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,gShell.Cmdlets.Directory.GAUser.GetGAUserCommand
So this is worse than last week where I was getting a 403 access denied, now I'm getting value cannot be null
As before, entering just the users email address at https://developers.google.com/apis-explorer/?hl=en_US#search/directory/admin/directory_v1/directory.users.get?userKey=user%2540mydomain.com&_h=3&
works fine.
Deleting the gshell_oauth2.json and rerunning set-gshellsecrets repopulates the file again.
Very weird.....
Clicking on Dashboard I can verify the Admin SDK is enabled. I am assuming this is the correct SDK - the getting started refers to the Admin Directory API but that does not show up in the list when you search.
When I did this i was not prompted to set the scope, which I was the first time I ran this (under the original clientid/secret combo)
I ran the invoke-scope just in case, set the scope settings up (snipped below) to show that the Directory is the API listed.
get-module shows that I'm running v1.0 (which probably needs to be corrected).
get-gshelluser returns the following - is this correct or should I have the clientSecrets filled in?
This does look suspiciously similar to Allieway's issue at https://github.com/squid808/gShell/issues/4 that was posted 6 days ago - the same time mine worked and possibly stopped working - co-incidence/problem?
Today I looked at this again.... So this is worse than last week where I was getting a 403 access denied, now I'm getting value cannot be null
--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.