Use the API to remove the Edit in Google buttons for Microsoft attachments

This article is for developers with a full understanding of how to work with our API. 

Important note about the API explorer
When you follow the link we provide to the API explorer, you'll see a red warning.
API_image01.png
The API itself is not deprecated. It's the Google API explorer that is deprecated. All the processes described in our API articles function correctly and safely if you use this Google API explorer. 


You may want to remove the Edit in Google buttons that appear next to Microsoft attachments by default. This means you can ensure your users use only the Microsoft Office suite rather than the corresponding Google apps (Google Docs, Sheets and Slides) to edit attachments. This affects only Microsoft attachments.

Learn more: Edit Microsoft Office attachments using the Google Docs editor embedded in AODocs.

A custom configuration flag is available to remove these buttons from the interface for a specific library or a whole domain.

Important:
– To apply the flag at the domain level, you must be super administrator; to apply the flag at the library level, you must be library administrator or super administrator.
– This setting is available through the API only. It isn't available in the administration interface.
– Custom configurations at the library level take precedence over those set at the domain level. For example, if you set the flag as true at the domain level and false for one library, the Edit in Google buttons will be removed for all libraries in your domain except the one in which you set it as false. 

Learn more: Use the API to check which custom configuration flags are set on your domain or library.

In this article:

Automatically generated table of contents


Set the custom configuration at the domain level 

1. As an AODocs super administrator, follow one of these links to the AODocs API:

  • US instance:

https://apis-explorer.appspot.com/apis-explorer/?base=https://ao-docs.appspot.com/api#s/domain/v1beta1/domain.configuration.set

  • EU instance:

https://apis-explorer.appspot.com/apis-explorer/?base=https://aodocs-core-eu-1.ey.r.appspot.com/api#s/domain/v1beta1/domain.configuration.set

Note: Dedicated instances have their own URLs. Learn more: What are AODocs instances?

2. Enter the flag name: disableGoogleEditorForOfficeFiles.

3. Enter your domain name. 

4. In the Request body field, enter TRUE.

5. Click Authorize and execute. The response is displayed in the lower part of the screen.

image01.png

Note: To remove a custom configuration, use the same process, and enter the value FALSEin the Request body field. This is the default value.


Set the custom configuration at the library level

1. As a library administrator, follow one of these links to the AODocs API:

  • US instance:

https://apis-explorer.appspot.com/apis-explorer/?base=https://ao-docs.appspot.com/api#p/library/v1beta1/library.configuration.set

  • EU instance:

https://apis-explorer.appspot.com/apis-explorer/?base=https://aodocs-core-eu-1.ey.r.appspot.com/api#s/library/v1beta1/library.configuration.set

Note: Dedicated instances have their own URLs. Learn more: What are AODocs instances?

Learn more: What are AODocs instances?

2. Enter the ID of the library in which you want to add custom buttons. Learn how to identify the library ID

3. Enter the flag name: disableGoogleEditorForOfficeFiles.

4. In the Request body field, enter TRUE.

5. Click Authorize and execute. The response is displayed in the lower part of the screen.

image02.png

Note: To remove a custom configuration, use the same process, and enterFALSE. This is the default value.


Which buttons are removed?

If you activate the disableGoogleEditorForOfficeFiles flag, the buttons shown below are no longer available for Microsoft attachments.

image03.png

Was this article helpful? 0 out of 0 found this helpful
If you didn’t find what you were looking for, don’t hesitate to leave a comment!
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.