...
In order to access OneDrive APIs (Microsoft Graph), you'll need to create an Azure AD Application.
...
- Log into the Azure Management Portal
- Click on “Azure Active Directory” option
- Select the “App registrations” option
- Click on “New application registration” button
- Create the application using the following values:
- Name: Any name you want. Ex.: “Aspire OneDrive Connector Dev”
- Application type: “Web app / API”
- Sign-on URL: Any unique URL. Ex.: “http://aspireonedriveconnector.companydomain.com”
- Click on “Create” button
- Select the application name in the list of applications to get to the application settings
- Select the “Properties” option and copy the “Application ID” value (used in the connector configuration)
Assign permissions to the application
- On the application settings select “Required permissions”
- Click on “Add” button
- Click on “Select API”
- Select the “Microsoft Graph” option
- Click on “Select” button
- On Application Permissions, select the following:
- Read files in all site collections (Files.Read.All)
- Read all users’ full profiles (User.Read.All)
- Read directory data (Directory.Read.All)
- Read all groups (Group.Read.All)
- Read items in all site collections (Sites.Read.All)
- Click on “Save”
- Click on “Grant Permissions”
- Click on “Yes” when prompted
Create application key
- On the application setting select “Keys”
- Add the following values to the key:
- Description: any description. Ex.: “Aspire OneDrive Connector Dev Key”
- Expires: select any duration based on the company policy. If the duration is not “Never expires”, a new key should be generated in Azure AD, and modified in the crawler properties before the expiration date.
- Click on “Save” to generate the Key value. Copy this value (used in the connector configuration)
...