Access control list

class gcsa.acl.AccessControlRule(*, role, scope_type, acl_id=None, scope_value=None)
Parameters:
  • role (str) – The role assigned to the scope. See ACLRole.

  • scope_type (str) – The type of the scope. See ACLScopeType.

  • acl_id (str) – Identifier of the Access Control List (ACL) rule.

  • scope_value (str) – The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type “default”.

property id
class gcsa.acl.ACLRole
  • NONE - Provides no access.

  • FREE_BUSY_READER - Provides read access to free/busy information.

  • READER - Provides read access to the calendar. Private events will appear to users with reader access, but event

    details will be hidden.

  • WRITER - Provides read and write access to the calendar. Private events will appear to users with writer access,

    and event details will be visible.

  • OWNER - Provides ownership of the calendar. This role has all of the permissions of the writer role with

    the additional ability to see and manipulate ACLs.

NONE = 'none'
FREE_BUSY_READER = 'freeBusyReader'
READER = 'reader'
WRITER = 'writer'
OWNER = 'owner'
class gcsa.acl.ACLScopeType
  • DEFAULT - The public scope.

  • USER - Limits the scope to a single user.

  • GROUP - Limits the scope to a group.

  • DOMAIN - Limits the scope to a domain.

DEFAULT = 'default'
USER = 'user'
GROUP = 'group'
DOMAIN = 'domain'