Re: Get-GAChromeosdevice -all issue

15 views
Skip to first unread message

Spencer Varney

unread,
Sep 25, 2017, 2:55:42 PM9/25/17
to eir...@gjesdalskolen.com, gshell-discuss
Hi Eirsta,

If you have no problem with get-gauser and those cmdlets then you have the project set up in the console. So, if it's not that then it's likely either one of two things:

1) Your user account that you used  to authenticate gShell doesn't have the permissions to view this information (are you a super admin for the domain?)

2) You didn't chose the proper scopes when you authenticated. Check here and make sure the scopes listed are in the scopes you chose when setting gShell up. If you're not sure what scopes you chose, you can either check the gShell_OAuth2.json file in your install directory, or run the following cmd:

$D = Get-GShellDomain -Default;$D.users[$D.defaultUser].tokenAndScopesByApi["admin:directory_v1"].scopes

If you don't see the scope listed there, then you'll need to run invoke-gshellscopemanager again and choose the proper scopes.

Let me know if that helps.

Regards,

Spencer

On Mon, Sep 25, 2017 at 4:10 AM <eir...@gjesdalskolen.com> wrote:
Hi

I gets this error by running this command.

Get-GAChromeosdevice : Google.Apis.Requests.RequestError
Insufficient Permission [403]
Errors [
        Message[Insufficient Permission] Location[ - ] Reason[insufficientPermissions] Domain[global]
]
At line:1 char:1
+ Get-GAChromeosdevice -all
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-GAChromeosdevice], GoogleApiException
    + FullyQualifiedErrorId : Google.GoogleApiException,gShell.Cmdlets.Directory.GAChromeosdevice.GetGAChromeosdeviceCommand


I have no problem with Get-GAUser -All.

Set-GShellClientSecrets are set.

What could the problem be?

Thanks on advance

--
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.

eir...@gjesdalskolen.com

unread,
Sep 26, 2017, 7:22:54 AM9/26/17
to gshell-discuss
Hey

Thanks for the response. I figured that I had to run invoke-gshellscopemanager

Problem solved

Regards
Eirik

Reply all
Reply to author
Forward
0 new messages