OneDrive authentication method
- Last Updated: April 16, 2026
- 2 minute read
- Automate MFT
- Documentation
To create a OneDrive authentication method in Automate MFT, you must complete several preliminary steps in Microsoft Entra (Azure AD). These steps are required for both certificate-based and app secret-based authentication.
We strongly recommend certificate-based authentication for better security and future compatibility.
Preliminary Steps
- Generate a TLS certificate.
- Import the certificate into the Keys and Certs library in Automate MFT.
- Register an app in the Microsoft Entra portal. During the registration, upload the TLS certificate to the Entra portal and add API permissions so Automate MFT can access OneDrive.
- Note the identifiers provided in the Entra portal, such as Tenant ID, for use in Automate MFT.
- Note that your are uploading the public part of the TLS certificate to
Entra. The Entra portal requires it in the
.cerformat.
- Register an app in the Microsoft Entra portal.
- Generate a client secret in the Entra portal.
- Note the identifiers and secret value provided in the Entra portal for use in Automate MFT. You will only be given a single opportunity to copy the secret from the Entra portal. Automate MFT requires the secret value, not the secret ID.
Add the Reusable Authentication Method
- Add the reusable authentication method:
- Click the Libraries drop-down menu and select Authentication Methods.
- Click the Add Authentication Method drop-down menu and select OneDrive.
- Provide a unique name for the authentication method.
- Optionally, enter a description to help identify the purpose or scope of this method.
- Select either Certificate
Access or App Access.
For more information about each authentication method, see OneDrive authentication.
Certificate Access (Recommended)
Client ID: A unique identifier assigned to an application registered in Microsoft Entra ID, used to access OneDrive resources. Also known as the Application ID.
Certificate private key: Select the certificate to associate with your OneDrive App. This is the private certificate you uploaded to Automate MFT during the preliminary steps above.
Tenant ID: A unique identifier for an Microsoft Entra ID tenant. Also known as the Directory ID.
Client ID: A unique identifier assigned to an application registered in Microsoft Entra ID, used to access OneDrive resources. Also known as the Application ID.
Client Secret: The Client Secret for your OneDrive App, which you saved during the preliminary steps above.
Tenant ID: A unique identifier for an Microsoft Entra ID tenant. Also known as the Directory ID.
- Save the new authentication method.