Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need resource googleworkspace.calendar.aclRules #4271

Closed
mm-weber opened this issue Jun 19, 2024 · 1 comment · Fixed by #4282
Closed

Need resource googleworkspace.calendar.aclRules #4271

mm-weber opened this issue Jun 19, 2024 · 1 comment · Fixed by #4282
Assignees
Labels
enhancement New feature or request google-workspace

Comments

@mm-weber
Copy link
Contributor

mm-weber commented Jun 19, 2024

Need resource googleworkspace.calendar.aclRules (or similar)

Possibly this is helpful for implementation:
https://pkg.go.dev/google.golang.org/api/calendar/v3#pkg-index

We need to parse the following API call https://developers.google.com/calendar/api/v3/reference/acl/list?apix_params=%7B%22calendarId%22%3A%22primary%22%7D , for the parameters:

items.id -> user:xxx is single use
items.id -> domain:xxx is acl within the domain
items.id -> default (not sure), is the global acl (can't seem to access it from the API )

which also matches scope.type

and match those to the 4 ACL types:

  • "freeBusyReader": The user can read free/busy information.
  • "owner": The user can read and modify events and access control lists.
  • "reader": The user can read events that are not private.
  • "writer": The user can read and modify events.
{
 "kind": "calendar#acl",
 "etag": "\"p32gab44bsbioc0o\"",
 "nextSyncToken": "00001718734802916000",
 "items": [
  {
   "kind": "calendar#aclRule",
   "etag": "\"00000000000000000000\"",
   "id": "user:[email protected]",
   "scope": {
    "type": "user",
    "value": "[email protected]"
   },
   "role": "owner"
  },
  {
   "kind": "calendar#aclRule",
   "etag": "\"00001718828598060000\"",
   "id": "domain:lunalectric.com",
   "scope": {
    "type": "domain",
    "value": "lunalectric.com"
   },
   "role": "freeBusyReader"
  }
 ]
}

https://developers.google.com/calendar/api/v3/reference/acl/list?apix_params=%7B%22calendarId%22%3A%22primary%22%7D

Maybe this reference is useful:
https://developers.google.com/calendar/api/v3/reference

@mm-weber mm-weber added enhancement New feature or request google-workspace labels Jun 19, 2024
@mm-weber mm-weber changed the title Need resource googleworkspace.connectedApps.calendar.aclRules Need resource googleworkspace.calendar.aclRules Jun 19, 2024
@mm-weber
Copy link
Contributor Author

Note: It seem like the settings of the Global ACL is not exposed or at least not documented here, as this only explains how to set the internal ACL:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request google-workspace
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants