Go to the administration of the team in which you want to use the Athento integration with OneDrive (Office 365).
Then, open the Apps tab.
In the OneDrive app, click the Add button.
Next, Athento will ask you for some values to complete the configuration.
Once you have added these values, the OneDrive app section will be displayed as in the following image. You will also see a button to verify that the connection with the Azure application is correctly established based on the Client ID and Secret data entered.
To obtain the Client ID, Secret and Redirect URI values, consult the Microsoft documentation:
In summary, before configuring the Athento OneDrive Office 365 integration you must:
1. Have registered an application in Azure.
2. Obtain the Client ID.
3. Have created a secret (Secret) for the application.
4. Have added the Redirect URI.
The value of Redirect URI must match your domain and the following path:
https://<domain>/file/onedrive_authorized
In addition, from the Authentication menu, make sure to enable the use of tokens and multitenancy.
5. API permissions
The permissions that must be added are:
- Files.Read
- Files.Read.All
- Files.ReadWrite
- Files.ReadWrite.All
To include them, go to the API permissions menu and click “Add a permission”, selecting Microsoft Graph and Delegated permissions.
Remember to always click the “Grant admin consent for …” button to apply administrator consent.
The rest of the values are optional and depend on your use case. Some of the most common are described below:
- Use space as destination: enable it to use a folder with the name of the document space in Athento when uploading documents to OneDrive.
- Allowed mimetypes: include the content types (MIME) of the documents that will be uploaded to OneDrive to edit and view them with Office365.
- Allowed extensions: include the allowed file extensions for documents that will be uploaded to OneDrive to edit and view them with Office365.
- Drive ID, Group ID, User ID and Site ID (Sharepoint): elements of the library context that will be used to upload the documents. This information must be configured according to the Microsoft Office365 configuration that you want to use.
- If no value is added in these fields, Athento will use the personal Office365 account to upload the documents.
Password usage
It is important that the password is not in URLencode encoding. The use of special characters such as “%”, “¿” or “/” can generate conflicts.
If you need to access Azure to see your registered applications, you can do so from:
https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
IMPORTANT The space where you create the documents that will be uploaded to Office365, must have the "Upload to OneDrive" option enabled in the space settings.