

* permissionId ID of the permission to update. * fileId ID of the file to update permission for. Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages). If successful, this method returns a Permissions resource in the response body. Only populated for permissions that belong to a view. While new values may be supported in the future, the following are currently allowed: Only populated for user type permissions for files that are not in a shared drive. Whether the account associated with this permission is a pending owner.

Expiration dates have the following restrictions: The time at which this permission will expire (RFC 3339 date-time). Only commenter is currently allowed, though more may be supported in the future. In the request body, supply a Permissions resource with the following properties: Property nameĪdditional roles for this user. For more information, see the authentication and authorization page. Some scopes are restricted and require a security assessment for your app to use them. This request requires authorization with at least one of the following scopes: Scope Issue the request as a domain administrator if set to true, then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs. Organizers of a shared drive can move items from that shared drive into their My Drive which transfers the ownership to them. Ownership transfers are not supported for files and folders in shared drives. Files existing in a shared drive are owned by the organization that owns that shared drive. File owners can only transfer ownership of files existing on My Drive. This parameter is required as an acknowledgement of the side effect. Whether to transfer ownership to the specified user and downgrade the current owner to a writer. Whether the requesting application supports both My Drives and shared drives.ĭeprecated use supportsAllDrives instead. Request HTTP request PUT fileId/permissions/ permissionId Parameters Parameter name Warning: Concurrent permissions operations on the same file are not supported only the last update is applied.
