gam calendar <calendar email> showacl
Hi, all -I might be missing something blindingly obvious, but how do I use GAM to find out the owner (or ideally the ACL) of a calendar from its Calendar ID Address: the thing that looks like an email address, usually seen in the Calendar Details tab of its settings?I thought it would begam calendar <calendar email> showacland indeed that does work for primary calendars — eg, for me the <calendar email> would be my email address, ending with our "york.ac.uk" domain name.However the calendar I'm trying to find out the owner and/or ACL of is a secondary calendar, created by a person and shared with others. When I use the above (working) command but change the <calendar email> to that of the secondary calendar I get this output from GAM:
% gam calendar york.ac.uk_longgibberishstring@group.calendar.google.com showacl
ERROR: Service not applicable for this address: unknown@unknown. Please make sure service is enabled for user and rungam user <user> check serviceaccountfor further instructions(Apologies: I've obfuscated part of the <calendar email> in that output.)I've checked the service account and it's fine.I did eventually managed to find the owner by subscribing to the <calendar email> in my G Suite admin account and checking the Share this calendar tab there.But is there a way to get the information directly using GAM?With many thanks,Mike B-)--Systems Administrator & Change ManagerIT Services, University of York, Heslington, York YO10 5DD, UKTel: +44-(0)1904-323811Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm
Hi, all -I might be missing something blindingly obvious, but how do I use GAM to find out the owner (or ideally the ACL) of a calendar from its Calendar ID Address: the thing that looks like an email address, usually seen in the Calendar Details tab of its settings?I thought it would begam calendar <calendar email> showacland indeed that does work for primary calendars — eg, for me the <calendar email> would be my email address, ending with our "york.ac.uk" domain name.However the calendar I'm trying to find out the owner and/or ACL of is a secondary calendar, created by a person and shared with others. When I use the above (working) command but change the <calendar email> to that of the secondary calendar I get this output from GAM:
% gam calendar york.ac.uk_longgibberishstring@group.calendar.google.com showacl
ERROR: Service not applicable for this address: unknown@unknown. Please make sure service is enabled for user and rungam user <user> check serviceaccountfor further instructions(Apologies: I've obfuscated part of the <calendar email> in that output.)I've checked the service account and it's fine.I did eventually managed to find the owner by subscribing to the <calendar email> in my G Suite admin account and checking the Share this calendar tab there.But is there a way to get the information directly using GAM?With many thanks,Mike B-)--Systems Administrator & Change ManagerIT Services, University of York, Heslington, York YO10 5DD, UKTel: +44-(0)1904-323811Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm
--
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.
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/CAPXCWasktemB_bzGAUZcXETRzquiojEEs9H79Q-YTNXuKLTBDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAPXCWasktemB_bzGAUZcXETRzquiojEEs9H79Q-YTNXuKLTBDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Kevin MelilloElectronic Communications AnalystInformation Technology445 Hoes LanePiscataway, NJ 08854Phone:732-465-6609 | Mobile: 732-609-4331E-mail: k.me...@ieee.org
--
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.
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/CAKM%3DboZaNe0orULd-o%3DGArhWXTG1UVvY52FF-Vz%2BEv%3D5_KZJQw%40mail.gmail.com.
% gam versionGAM 4.30 - https://git.io/gamJay Lee <redacted@gmail.com>Python 2.7.10 64-bit finalgoogle-api-python-client 1.6.2oauth2client 4.1.2Darwin-16.7.0-x86_64-i386-64bit x86_64Path: /Users/pmb1/Repositories/external/GAM/src
% gam calendar york.ac.uk_long...@group.calendar.google.com showacl
ERROR: Service not applicable for this address: unknown@unknown. Please make sure service is enabled for user and rungam user <user> check serviceaccountfor further instructions
% gamadv-x versionGAM 4.47.06 - https://github.com/taers232c/GAMADV-XRoss Scroggs <redacted@gmail.com>Python 2.7.10 64-bit finalgoogle-api-python-client 1.6.2oauth2client 4.1.2Darwin-16.7.0-x86_64-i386-64bit x86_64Path: /Users/pmb1/Repositories/external/GAMADV-X/src
% gamadv-x calendar york.ac.uk_long...@group.calendar.google.com show acls…produces the ACL listing all the readers, writers and owners of the calendar…
My understanding is that there are two types of calendars:
Calendars not owned by users: accessed with client account (admin)
Calendars owned by users: accessed with service account
Calendar commands come in two flavors:
gam calendar <CalendarEntity> ...
gam <UserTypeEntity> <operation> calendar|calendaracl|event ...
GAM 4.30 tries to perform both types of calendar commands with service account access.
If service account access fails, it tries to revert to client access; it's the reversion that's failing in your case.
To revert to client access, GAM 4.30 tries to get the admin email address from oauth2.txt.
GAM 4.47.0x uses client access for commands that look like: gam calendar <CalendarEntity> ...
GAM 4.47.0x uses service account access for commands that look like: gam <UserTypeEntity> <operation> calendar|calendaracl|event ...
--
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.
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/5b32b516-b9c0-43d8-a608-5600b669495b%40googlegroups.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.
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/d02b116a-09db-4597-80bd-f12f2754bd60%40googlegroups.com.