![]() Java is a registered trademark of Oracle and/or its affiliates. For details, see the Google Developers Site Policies. Updates a permission with patch semantics.Įxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. Lists a file's or shared drive's permissions. Only populated for user type permissions for files that are not in a shared drive.Ĭreates a permission for a file or shared drive. Whether the account associated with this permission is a pending owner. Only populated for permissions that belong to a view. This field only pertains to user and group permissions. Whether the account associated with this permission has been deleted. Use permissionDetails/role instead.ĭeprecated: Output only. Use permissionDetails/inheritedFrom instead.ĭeprecated: Output only. Use permissionDetails/permissionType instead.ĭeprecated: Output only. Use permissionDetails instead.ĭeprecated: Output only. The time cannot be more than a year in the future.They can only be set on user and group permissions.Expiration times have the following restrictions: The time at which this permission will expire (RFC 3339 date-time). The domain to which this permission refers. This is only applicable for permissions of type domain or anyone. Whether the permission allows the file to be discovered through search. ![]() While new values may be supported in the future, the following are currently allowed: The email address of the user or group to which this permission refers. A link to the user's profile photo, if available. While new values may be added in the future, the following are currently possible: The ID of the item from which this permission is inherited. While new values may be added in future, the following are currently possible: This is an output-only field which is present only for shared drive items. Details of whether the permissions on this shared drive item are inherited or directly on this item. Value: the fixed string "drive#permission". Identifies what kind of resource this is. There isn't extra information required for an anyone type. When type is domain, you must provide a domain. When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. domain - String domain name, such as ".".group - Name of the Google Group, such as "The Company Administrators.".user - User's full name, as defined for their Google account, such as "Joe Smith.".The following is a list of examples for each type of permission: The "pretty" name of the value of the permission. Note that there is also a Google Sheets API v4, but its primarily for spreadsheet-oriented operations, i.e., inserting data, reading spreadsheet rows, cell formatting, creating charts, adding pivot tables, etc., not file-based request like exporting where the Drive API is the correct one to use. This is a unique identifier for the grantee, and is published in User resources as permissionId. Use the permissions.list method to retrieve the ID for a file, folder, or shared drive. Some resource methods (such as permissions.update) require a permissionId. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |