taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
687 stars 86 forks source link

Could not add Looker Studio permission #407

Closed TamerElSherif-Siware closed 3 weeks ago

TamerElSherif-Siware commented 2 months ago

I could show Looker Studio report details but I am not able to add permission to a user. I got This error: Add Failed: Policy contains invalid member prefix yyyyy@xxxx.com

Command: gam user xxxxx@xxxx.com add lookerstudiopermission title "PM Team Utilization V1" role viewer yyyyy@xxxx.com

result: Getting all Looker Studio REPORT Assets for xxxxx@xxxx.com Got 1 Looker Studio REPORT Asset... User: xxxxx@xxxx.com, Add Looker Studio Permissions to 1 Looker Studio Asset User: xxxxx@xxxx.com, Looker Studio Asset: PM Team Utilization V1, Add Failed: Policy contains invalid member prefix yyyyy@xxxx.com

taers232c commented 2 months ago
::= user:| group:| domain:| serviceAccount: ::= "(,)*" ::= | | | | Try: gam user ***@***.*** ***@***.***> add lookerstudiopermission title "PM Team Utilization V1" role viewer ***@***.*** ***@***.***> Replace user: with group: as desired. Ross ---- Ross Scroggs ***@***.*** > On Apr 15, 2024, at 9:01 AM, TamerElSherif-Siware ***@***.***> wrote: > > > I could show Looker Studio report details but I am not able to add permission to a user. I got This error: > Add Failed: Policy contains invalid member prefix ***@***.*** ***@***.***> > Command: > gam user ***@***.*** ***@***.***> add lookerstudiopermission title "PM Team Utilization V1" role viewer ***@***.*** ***@***.***> > result: > Getting all Looker Studio REPORT Assets for ***@***.*** ***@***.***> > Got 1 Looker Studio REPORT Asset... > User: ***@***.*** ***@***.***>, Add Looker Studio Permissions to 1 Looker Studio Asset > User: ***@***.*** ***@***.***>, Looker Studio Asset: PM Team Utilization V1, Add Failed: Policy contains invalid member prefix ***@***.*** ***@***.***> > — > Reply to this email directly, view it on GitHub , or unsubscribe . > You are receiving this because you are subscribed to this thread. >
TamerElSherif-Siware commented 2 months ago

Thanks Ross for replying. unfortunately, It did not work. image

could you please clarify the syntax again or give me an example

Also, When I tried the delete permission command it did not work. It gave me permission deleted in the command result but it was not actually deleted (see the below screenshot)

image

taers232c commented 2 months ago

I gave you an example in my last reply. gam user @. @.> add lookerstudiopermission title "PM Team Utilization V1" role viewer @. @.>

Show me the command yiu are typing and the result.

Ross

Ross Scroggs @.***

On Apr 17, 2024, at 4:11 AM, TamerElSherif-Siware @.***> wrote:

Thanks Ross for replying. unfortunately, It did not work. could you please clarify the syntax again or give me an example

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/407#issuecomment-2061012285, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3ZQIUCOWTIZTWBNVDY5ZKHHAVCNFSM6AAAAABGHUTRQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGAYTEMRYGU. You are receiving this because you commented.

TamerElSherif-Siware commented 2 months ago

Here is the command and result:

gam user tamer.elsherif@si-ware.com add lookerstudiopermission title "PM Team Utilization V1" role viewer intranet@si-ware.com

Getting all Looker Studio REPORT Assets for tamer.elsherif@si-ware.com Got 1 Looker Studio REPORT Asset... User: tamer.elsherif@si-ware.com, Add Looker Studio Permissions to 1 Looker Studio Asset User: tamer.elsherif@si-ware.com, Looker Studio Asset: PM Team Utilization V1, Add Failed: Policy contains invalid member prefix intranet@si-ware.com image

taers232c commented 2 months ago

You keep omitting user: from the email address am user @. add lookerstudiopermission title "PM Team Utilization V1" role viewer @.

Ross

On Wed, Apr 17, 2024 at 7:21 AM Tamer ElSherif SWS @.***> wrote:

Here is the command and result:

gam user @. add lookerstudiopermission title "PM Team Utilization V1" role viewer @.

Getting all Looker Studio REPORT Assets for @. Got 1 Looker Studio REPORT Asset... User: @., Add Looker Studio Permissions to 1 Looker Studio Asset User: @., Looker Studio Asset: PM Team Utilization V1, Add Failed: Policy contains invalid member prefix @. image.png (view on web) https://github.com/taers232c/GAMADV-XTD3/assets/96870717/a4d12f25-6a75-4e44-a25a-ffb5c6750246

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/407#issuecomment-2061380011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL7FTAA34BP25IYFVXLY52ANFAVCNFSM6AAAAABGHUTRQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGM4DAMBRGE . You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

TamerElSherif-Siware commented 2 months ago

I think it is omitted by GitHub! here is another screenshot image

taers232c commented 2 months ago

If you want the command to work, you have to type it correctly: Wrong:

gam user tamer.elsherif@si-ware.com add lookerstudiopermission title "PM Team Utilization V1" role viewer intranet@si-ware.com

Right:

gam user tamer.elsherif@si-ware.com add lookerstudiopermission title "PM Team Utilization V1" role viewer user:intranet@si-ware.com
TamerElSherif-Siware commented 2 months ago

Thanks a lot Ross it worked!