Note:Requires authorization.
Updates a permission with patch semantics.Try it now.
Install Drive on your Mac or PC, download the mobile app to your phone or tablet, or visit anytime at drive.google.com.Search everything. Search by keyword and filter by file type, owner and more. Drive can even recognize content in your scanned documents and images. We get you started with 15 GB free. Learn more at drive.google.com. Google Drive Update Makes It Less Annoying to Search on Mobile. Google teases an update that improves search functionality across its Drive app, including search suggestions and the ability to 're.
Request
HTTP request
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
fileId | string | The ID of the file or shared drive. |
permissionId | string | The ID of the permission. |
Optional query parameters | ||
fields | string | The paths of the fields you want included in the response. If not specified, the response includes a default set of fields specific to this method. For development you can use the special value * to return all fields, but you'll achieve greater performance by only selecting the fields you need. For more information, see Return specific fields for a file. |
removeExpiration | boolean | Whether to remove the expiration date. (Default: false ) |
supportsAllDrives | boolean | Whether the requesting application supports both My Drives and shared drives. (Default: false ) |
supportsTeamDrives | boolean | Warning: This item is deprecated. Deprecated use supportsAllDrives instead. (Default: false ) |
transferOwnership | boolean | Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. (Default: false ) |
useDomainAdminAccess | boolean | 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. (Default: false ) |
Authorization
Ok google take me to chrome. This request requires authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/drive |
https://www.googleapis.com/auth/drive.file |
Some scopes are restricted and require a security assessment for your app to use them. For more information, see the authentication and authorization page.
Request body
In the request body, supply the relevant portions of a Permissions resource, according to the rules of patch semantics, with the following properties:
Property name | Value | Description | Notes |
---|---|---|---|
Optional Properties | |||
expirationTime | datetime | The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
| writable |
role | string | The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
| writable |
view | string | Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value. | writable |
Response
If successful, this method returns a Permissions resource in the response body.
Try it!
Google Drive Updates
Use the APIs Explorer below to call this method on live data and see the response.
Last updated: November 2016
Issue
When you click a link to a Google Drive folder from within Word, your web browser returns an 'Update your browser' message.
Status: Workaround
Important: These steps tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows.
To work around this issue, either add the ForceShellExecute subkey, if it is not present, and set the Value data, or if it is present, set the Value data of the ForceShellExecute subkey.
Quit any programs that are running.
Click Start, and then click Run. Type regedit in the Open box, and then click OK.
In Registry Editor, browse to one of the following subkey (create the keys when they do not exist):
For a 32 Bit version of Office on 64 bit version of Windows
HKLMSOFTWAREWow6432NodeMicrosoftOffice9.0CommonInternet Google chrome standalone latest version free download.
For a 32 Bit version of Office on 32 bit version of Windows
HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice9.0CommonInternet
For a 64 Bit version of Office on 64 bit version of Windows
HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice9.0CommonInternet
Make sure the Internet subkey is selected. On the Edit menu, point to New, and then click DWORD Value. Add the following registry value:
Value Name: ForceShellExecute
Double-click ForceShellExecute, and then set the Value data to 1. Click OK.
On the Registry menu, click Exit.
You'll probably need to restart Word (and maybe your computer) after this change.
Google Drive Update Existing
The only known effect of this workaround is that hyperlinks to Office document file content will open in your browser, prompting a download instead of opening in-app.
Check whether the problem is fixed. If it's not fixed, you can contact support.
Google Drive Update Version
Have a feature request?
Google Drive Update 2018
We love reading your suggestions on new features and feedback about how you use our products! Share your thoughts on the Word UserVoice site. We're listening. |