permission_role Property
The role specified by the permission.
Syntax
def get_permission_role(permission_index: int) -> int: ... def set_permission_role(permission_index: int, value: int) -> None: ...
Default Value
0
Remarks
The role specified by the permission.
This property defines the role specified by the permission. Possible values are:
prReader (0) (default) | Read-only permissions. |
prCommenter (1) | Read-only plus commenting permissions. |
prWriter (2) | Read, write, and comment permissions. |
prOwner (3) | Full ownership (personal drives only). |
prFileOrganizer (4) | Writer permissions, plus the ability to move and trash resources (shared drives only). |
prOrganizer (5) | File organizer permissions, plus the ability to permanently delete resources from, and rename/delete/alter the membership of, a shared drive (shared drives only). |
The permission_index parameter specifies the index of the item in the array. The size of the array is controlled by the permission_count property.