Is there an option to set/update sharing permissions via gam?

1,114 views
Skip to first unread message

Enida Zhapa

unread,
Jan 29, 2017, 7:49:06 PM1/29/17
to GAM for G Suite
Hi,

I was wondering if you guys are familiar with scripting the sharing options via gam cli or api.

It appears that neither 'create' nor 'update' has an option for setting or updating permissions. I was wondering what would be the simplest/best approach when we need to create 100 rooms with restricted permissions?

Thanks,
Enida

Ross Scroggs

unread,
Jan 29, 2017, 8:40:23 PM1/29/17
to google-ap...@googlegroups.com
--
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/5c54b330-720b-48ec-96c5-1b6374b5b387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Enida Zhapa

unread,
Jan 30, 2017, 6:46:16 PM1/30/17
to GAM for G Suite
Hi Ross,

Thanks for your reply. Apologies for not making myself clear enough but I was referring to the sharing options of calendar resources rather than google drive :-). What we need to achieve is create about 100 calendar resources via gam cli with restricted permissions to everyone in the company and then open the permissions after a couple of days to specific users. Is there an easy way that you're familiar of to achieve this?

Cheers 
Enida

Ross Scroggs

unread,
Jan 30, 2017, 7:29:05 PM1/30/17
to google-ap...@googlegroups.com
Enida,

Here's the general idea.

gam create resource OldResource 'Old Resource' description 'Old Description'

                    xxxxxxxxxxx yyyyyyyyyyyyyy             zzzzzzzzzzzzzzzzz

xxxx - ResoureID, not generally seen by user

yyyy - The name that the users will see

zzzz - Long description


gam info resource OldRresource


This will give you resourceEmail of Resource


gam calendar <resourceEmail> add reader|writer|freebusyreader user us...@domain.com

gam calendar <resourceEmail> add reader|writer|freebusyreader group gr...@domain.com


gam calendar <resourceEmail> showacl



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.



--

Enida Zhapa

unread,
Jan 30, 2017, 9:52:46 PM1/30/17
to google-ap...@googlegroups.com
And now it works :-)...

Thanks for your help Ross.

Regards,
Enida

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/SP4GRqDBmwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Enida Zhapa

unread,
Jan 30, 2017, 11:48:31 PM1/30/17
to google-ap...@googlegroups.com
Hi Ross,

Thanks for your assistance so far, it's much appreciated!

I was wondering if you could help me with another enquiry I had. Apparently I am trying to use the gam licenses capability and would like to retrieve the number of available licenses we have. Once we reach the 75 licenses available let's say I would like to notify myself via email. I can print all licenses for all products we have but I was wondering if there is a way to get the number of available licenses?

Thanks,
Enida

To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Jay Lee

unread,
Jan 31, 2017, 7:42:08 AM1/31/17
to google-ap...@googlegroups.com

There is currently no API method to determine the number of free or total licenses you have. All you can see is assigned licenses.

Jay


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.



--

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/SP4GRqDBmwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

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

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

Jay

Enida Zhapa

unread,
Feb 12, 2017, 11:23:09 PM2/12/17
to google-ap...@googlegroups.com
Hi Jay,

Thank you so much for your feedback. Are you aware of any methods that allows us to know the number of available licenses proactively?

Thanks,
Enida

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.



--

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/SP4GRqDBmwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

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

Jay

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/SP4GRqDBmwU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages