Using GAMADV-XTD3

260 views
Skip to first unread message

William Forrester

unread,
Nov 25, 2023, 6:22:45 AM11/25/23
to GAM for Google Workspace
Hi,

I've being using ordinary GAM for some time, but now need to use GAMADV-XTD3 to add someone to Looker Studio document because the owner is away on sick leave.

I can find this in the documentation, but can't figure out the command line to use with GAM:

gam <UserTypeEntity> add lookerstudiopermissions
        [([assettype report|datasource|all] [title <String>]
          [owner <Emailddress>] [includetrashed]
          [orderby title [ascending|descending]]) |
         (assetids <LookerStudioAssetIDEntity)]
        (role editor|viewer <LookerStudioPermissionEntity>)+
        [nodetails]

So, lets say personA is the owner and personB is the person I need to give the role of editor to.

I've tried 

gam user personB add lookerstudiopermissions title title of item owner personA role editor

Just comes up with an error and points me to the documentation. But the documentation doesn't contain any examples of gam commands to do this.

Any help would be apprciated.

William Forrester.


BMJ is a healthcare knowledge provider with a vision for a healthier world. We share knowledge and expertise to improve healthcare outcomes. See how we are making a difference in our latest impact report:
https://www.bmj.com/company/impact-report/ This email and any attachments are confidential. If you have received this email in error, please delete it and kindly notify us. If the email contains personal views then BMJ accepts no responsibility for these statements. The recipient should check this email and attachments for viruses because the BMJ accepts no liability for any damage caused by viruses. Emails sent or received by BMJ may be monitored for size, traffic, distribution and content. BMJ Publishing Group Limited trading as BMJ. A private limited company, registered in England and Wales under registration number 03102371. Registered office: BMA House, Tavistock Square, London WC1H 9JR, UK.

Ross Scroggs

unread,
Nov 25, 2023, 9:16:56 AM11/25/23
to google-ap...@googlegroups.com
Please show the error.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" 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/4e2019ff-0b15-4271-bb4a-b443bd6b5213n%40googlegroups.com.

William Forrester

unread,
Nov 27, 2023, 4:10:48 AM11/27/23
to google-ap...@googlegroups.com
Hi Ross,

Error is below:

C:\GAMADV-XTD3>gam user x...@yyy.com add lookerstudiopermissions title "Global Market Intelligence Dashboard" owner z...@yyy.com role editor
Command: gam user x...@yyy.com add lookerstudiopermissions title "Global Market Intelligence Dashboard" owner z...@yyy.com role editor >>><<<

ERROR: Missing argument: Expected <LookerStudioPermissionEntity>

I've looked at the documentation and it gives me this:

<LookerStudioPermissionEntity> ::=
        <LookerStudioPermissionList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector> | <CSVDataSelector>

Not sure what I should put here since all I want to do is to give person x...@yyy.com editor access to that dashboard.

Regards,

William.

William Forrester

End User Computing Consultant

BMA Technology Services





You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/amQMHDtmAK0/unsubscribe.
To unsubscribe from this group and all its topics, 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/2B31936A-53EB-44AB-ABCB-5222E54DF394%40gmail.com.

Ross Scroggs

unread,
Nov 27, 2023, 10:47:05 AM11/27/23
to google-ap...@googlegroups.com

<LookerStudioPermission> ::=
        user:<EmailAddress>|
        group:<EmailAddress>|
        domain:<DomainName>|
        serviceAccount:<EmailAddress>
<LookerStudioPermissionList> ::= "<LookerStudioPermission>(,<LookerStudioPermission>)*"
<LookerStudioPermissionEntity> ::=
        <LookerStudioPermissionList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector> | <CSVDataSelector>

At its simplest, <LookerStudioPermissionEntity> is a <LookerStudioPermission>

gam <UserTypeEntity> add lookerstudiopermissions
### Select asset
        [([assettype report|datasource|all] [title <String>]
          [owner <Emailddress>] [includetrashed]
          [orderby title [ascending|descending]]) |
         (assetids <LookerStudioAssetIDEntity>)]
### Permission to add
        (role editor|viewer <LookerStudioPermissionEntity>)+
        [nodetails]


It appears that you're trying to give user z...@yyy.com access to "Global Market Intelligence Dashboard", so:
gam user x...@yyy.com add lookerstudiopermissions title "Global Market Intelligence Dashboard" role editor user:z...@yyy.com

Ross
----
Ross Scroggs


William Forrester

unread,
Nov 27, 2023, 11:22:57 AM11/27/23
to google-ap...@googlegroups.com
Thanks Ross.

That worked very well.

I was almost there. I just got confused with the syntax.

Thanks again.

William.

William Forrester

End User Computing Consultant

BMA Technology Services

 

British Medical Association

T: 020 7383 6683| E: wforr...@bma.org.uk

BMA House, Tavistock Square, London, WC1H 9JP




Reply all
Reply to author
Forward
0 new messages