OneDrive Connector Setup
Provide necessary API permissions to index OneDrive files.
Index OneDrive files by granting the necessary API Permissions in your App Registration.
Grant OneDrive API Permissions
After following the steps in Entra ID - Create New App Registration to create a new App Registration, you will need to add additional API permissions to index OneDrive resources.
In addition to the Entra ID permissions listed in the Microsoft Connector for the Microsoft Graph
, you will also need:
- Under
Microsoft Graph
API:- Files.Read.All
- Once added, select
Grant admin consent for ...
where...
is your tenant name. This link is beside theAdd a permission
link.
Determine Indexing Scope
If you have many drives, it may be worth using the includes
feature explained in the Common Fields: Resources section to index only the relevant drives.
An example inclusion/exclusion configuration will look like the following:
resources:
group:
excluded:
- secret-group@example.com # Ignore drives whose sole owner is "secret-group"
included:
- public-group@example.com # Index drives accessible by "public-group"
user:
excluded:
- secret-user@example.com # Ignore drives whose sole owner is "secret-user"