OneDrive Connector Setup
Provide necessary API permissions to index OneDrive files.
The Microsoft connectors support:
We recommend creating separate App Registrations for each Microsoft source you plan to use. This follows the principle of least privilege and provides:
Choose the approach that best fits your organization’s security and scale requirements:
Create individual App Registrations for:
Each registration gets only the permissions needed for that specific source.
Use one App Registration for all sources. This requires the superset of all permissions and is not recommended for production environments due to security and rate limiting concerns.
Before configuring any Microsoft connector, ensure you have:
Microsoft Graph API requires certificate-based authentication. Choose one option:
Note: A password is required on the
.PFXfile for new certificates. Keep the password; you’ll need to provide it with the certificate.
# Generate private key and certificate
openssl req -x509 -newkey rsa:2048 -keyout atolio-key.pem -out atolio-cert.pem -days 365 -nodes
# Create password-protected PFX file (you will be prompted to choose a password)
openssl pkcs12 -export -out atolio-cert.pfx -inkey atolio-key.pem -in atolio-cert.pem
# Create CER file for Azure upload
openssl x509 -outform der -in atolio-cert.pem -out atolio-cert.cer
# Get base64-encoded PFX for Atolio configuration
cat atolio-cert.pfx | base64
# Generate certificate
$cert = New-SelfSignedCertificate -Subject "CN=Atolio" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeySpec Signature
# Export CER file for Azure
Export-Certificate -Cert $cert -FilePath "atolio-cert.cer"
# Export PFX file for Atolio (replace '<your-pfx-password>' with your chosen password)
Export-PfxCertificate -Cert $cert -FilePath "atolio-cert.pfx" -Password (ConvertTo-SecureString -String "<your-pfx-password>" -Force -AsPlainText)
# Get base64-encoded PFX
[Convert]::ToBase64String([IO.File]::ReadAllBytes("atolio-cert.pfx"))
All Microsoft connectors require these foundational steps:
.cer file to the App RegistrationEnter these values in the Atolio Admin console (v4.24 and later), or send them to Atolio Support (your Deployment Engineer).
Each Microsoft connector needs its own App Registration, so each connector page lists its own copy of these values. The values below are common to every Microsoft connector.
| Value | Where to find it | Example / format | Secret |
|---|---|---|---|
| Directory (tenant) ID | App Registration Overview page | GUID, e.g. 00000000-0000-0000-0000-000000000000 | No |
| Application (client) ID | App Registration Overview page | GUID, e.g. 00000000-0000-0000-0000-000000000000 | No |
Certificate (base64-encoded .PFX) | Certificate Generation, the base64 output of the .PFX file | Long base64 string | Yes |
| Certificate password | Certificate Generation, the password set on the .PFX file | Your chosen password | Yes |
Keep secrets secure: Share values marked “Yes” in the Secret column only through a password-manager share (e.g. 1Password) or another secure channel agreed with Atolio Support. Never send them in plain email, chat, or support tickets.
Each connector page has a Configuration Example with the YAML block for connector-values.yaml: OneDrive, Outlook, SharePoint and Teams.
All Microsoft connectors support filtering to limit indexing scope using YAML configuration in your connector settings:
resources:
user:
included:
- arthur.dent@example.com
group:
excluded:
- contractors@example.com
Common filter types include:
For detailed filtering options, see the individual connector documentation pages.
Provide necessary API permissions to index OneDrive files.
Provide necessary API permissions to index Outlook emails and calendar events.
Provide necessary API permissions to index SharePoint sites.
Provide necessary API permissions to index Teams channels.