role property

String? role
getter/setter pair

Indicates the Google Drive permissions role.

The role determines a user's ability to read, write, and comment on items. Possible string values are:

  • "ROLE_UNSPECIFIED" : The role is not available.
  • "OWNER" : A role granting full access.
  • "ORGANIZER" : A role granting the ability to manage people and settings.
  • "FILE_ORGANIZER" : A role granting the ability to contribute and manage content.
  • "EDITOR" : A role granting the ability to contribute content. This role is sometimes also known as "writer".
  • "COMMENTER" : A role granting the ability to view and comment on content.
  • "VIEWER" : A role granting the ability to view content. This role is sometimes also known as "reader".
  • "PUBLISHED_VIEWER" : A role granting the ability to view content only after it has been published to the web. This role is sometimes also known as "published reader". See https://support.google.com/sites/answer/6372880 for more information.

Implementation

core.String? role;