OneDrive authentication
- Last Updated: April 16, 2026
- 3 minute read
- Automate MFT
- Documentation
Automate MFT supports multiple
authentication options to connect to OneDrive online. Each method requires you to
register an application in Microsoft Entra ID (Azure AD) and configure permissions. This
process allows Automate MFT to connect to your OneDrive tenant as an application,
without requiring an interactive user log on. Each method is explained with step-by-step
configuration instructions:
- Certificate Access
- App Access
Prerequisites
- Microsoft Entra ID (Azure AD) set up: You must have an Azure Portal Admin account to access and manage Microsoft Entra ID settings.
- Self-signed certificate (for Certificate
Access):
- Generate using OpenSSL or PowerShell.
- RSA 2048 bits is the minimum key size.
- The certificate with the private key is imported into the Keys and Certs library in Automate MFT. The public key (.cer) is uploaded to Entra.
- You can also use a PFX file without a private key embedded.
Certificate Access
OneDrive authentication is available as Microsoft Entra ID authentication through the Certificate Access option.
Microsoft Entra ID set up
- Open the Microsoft Azure Portal. If it is the first time that you access the Azure portal with your account, you will have to register a new Azure subscription.
- Click , where you will find the list of Microsoft Entra ID applications registered in your tenant.
- Click New registration, provide a name for your application, such as Automate MFT OneDrive. Click Register.
- To add API permissions, click , and choose the permissions you want to grant to this
application. You must have and then either , , or .
To save the permissions, click Add permissions.
- In the Grant Consent section, click the Grant admin consent for organization name button and confirm the
action by clicking the Yes button
that appears at the top.
You must grant admin consent for each API added.
- To connect the certificate created in the prerequisites, click . Select the .cer file you generated earlier and click add to upload it.
- To confirm that the certificate was successfully registered,
click Manifest in the left menu and
search for the
keyCredentialsproperty. It should be similar to thisJSONexample:"keyCredentials": [ { "customKeyIdentifier": "<$base64CertHash>", "endDate": "2021-05-01T00:00:00Z", "keyId": "<$guid>", "startDate": "2019-05-01T00:00:00Z", "type": "AsymmetricX509Cert", "usage": "Verify", "value": "<$base64Cert>", "displayName": "CN=<$name of your cert>" } ], - To locate the Client (Application) ID and the Tenant (Directory) ID, navigate to .
Create the OneDrive authentication method in
Automate MFT
- Upload the certificate private key to the Keys and Certs library in Automate MFT.
- Create a OneDrive authentication method in Automate MFT with Authentication set to Certificate Access. For more information , see OneDrive authentication method.
- Enter the client id and tenant id, which can be found in Azure Entra ID’s App registration overview menu.
- Select the certificate from the dropdown list.
App Access
OneDrive authentication is available as Microsoft Entra ID authentication through the App Access option, which utilizes a secret rather than a certificate.
Microsoft Entra ID set up
- Open the Microsoft Azure Portal with an administrative account.
- Click , where you will find the list of Microsoft Entra ID applications registered in your tenant.
- Click New registration, provide a name for your application and click Register.
- To add API permissions, click , and choose the permissions you want to grant to this
application. You must have and then either , , or .
To save the permissions, click Add permissions.
- In the Grant Consent section, click the Grant admin consent for organization name button and confirm the
action by clicking the Yes button
that appears at the top.
You must grant admin consent for each API added.
- To create a new Client secret, click . Copy the secret value immediately as it only accessible immediately after generation and is required to configure the authentication method in Automate MFT.
- To locate the Client (Application) ID and the Tenant (Directory) ID for the app registration, navigate to .
Create the OneDrive authentication method in Automate MFT
- Create a OneDrive authentication method in Automate MFT with Authentication set to App Access. For more information, see OneDrive authentication method.
- Enter the client id and tenant id, which can be found in Azure Entra ID’s App registration overview menu.
- Enter the client secret that was generated for the App registration.