Application Configuration in Azure Portal for OAuth2 Account to use in Microsoft Entra
Overview
The Snaps in the Microsoft Entra ID Snap Pack require an OAuth2 account to access the resources. To authorize the OAuth2 account successfully, create and configure an application corresponding to the account as shown in the workflow.

Prerequisites
An Azure account with a free subscription to create the application.
Key Steps in the Workflow
Create an Application in the Azure Portal
- Log in to the Microsoft Azure Portal.
- Navigate to Azure services > Microsoft Entra ID.
- Click Add > App registration.
- On the Register an application page, specify the name for registering the application and click Register. Learn more about creating an application at https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.
Define Permissions
- On the left navigation panel, navigate to Manage, select API permissions > Add a permission.

- On the Request API permissions window, select Microsoft Graph > Delegated permissions for the OAuth2 User Account and Application permissions for the OAuth2 Application Account.

- Select the required permissions from Files, Users/Groups, and Teams. Choose the minimum API permissions listed in the Scopes and Permissions Required for Azure Active Directory section below.
- Click Add Permissions. You can view all the permissions added under Configured permissions.

- Click Grant admin consent confirmation and select Yes.

- In the navigation panel, click Overview and select Add a Redirect URI. You will be redirected to the Platform configurations page.

- Under Platform configurations, click Add a platform.

The Configure platforms window displays.
- Select Web and specify the Redirect URI in the following format:
https://<control-plane-name>.snaplogic.com/api/1/rest/admin/oauth2callback/<snap-pack-name>where the<control-plane-name>corresponds to the domain part of your SnapLogic URL—elastic (global control plane) or emea (EMEA control plane). For example:https://emea.snaplogic.com/api/1/rest/admin/oauth2callback/azureactivedirectoryhttps://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/azureactivedirectory - Click Configure. A popup message displays indicating that the application is successfully updated.
- Under Platform configurations, click Add a platform.
- On the Platform configurations page, click Save. The Redirect URIs are added in the application.
Locate the Application Credentials in the Azure Portal
To authorize your account in SnapLogic, you must have the following application credentials:
- Application (Client) ID
- Directory (Tenant) ID
- Client secret value
- On the application page, navigate to Overview.
- Under Essentials, note the Application (client) ID and Directory (tenant) ID needed for the Snap account.

- In the navigation panel, select Manage > Certificates & secrets.
- On the Certificates & secrets page, click + New client secret.
- In the Add a client secret window, enter the Description, select an option for Expires from the dropdown list, and click Add.
- The Client secret value and Secret ID are generated. This value and ID are required to configure the OAuth2 account.
Note: You can copy the Client secret value only after it is generated.
Scopes and Permissions Required for Azure Active Directory
| Snap Name | API/Permissions Name | Type | Description |
|---|---|---|---|
| Directory.Read.All | Directory.Read.All | Application | Allows the app to read and write data in your organization's directory, such as users and groups, without a signed-in user. Does not allow user or group deletion. |
| Directory.ReadWrite.All | Directory.ReadWrite.All | Application | Allows the app to read and write data in your organization's directory, such as users and groups, without a signed-in user. Does not allow user or group deletion. |
Specify the Credentials And Validate the Snap account
- Navigate to the Snap of your choice and configure the OAuth2 account with the details from the Azure portal's registered application. Refer to Azure Active Directory OAuth2 account
- Select the Auto-refresh token checkbox in the account settings and click Apply.
- Click Authorize. The Access and Refresh tokens are generated. You will be redirected to the sign-in page of the Azure Portal.
- Sign in to Azure Portal with valid credentials to redirect to the Snap Edit account settings dialog. The Access and Refresh tokens are auto-populated but encrypted in the Account settings.
- Validate the Snap Account.
Troubleshooting
| Common Errors | Reason | Response |
|---|---|---|
| Error 401 | Token is invalid | Provide a valid token and reauthorize the account. |
| The redirect URI specified does not match the reply URI configured for the application. | Incorrect redirect URI specified by user. | Add the following redirect_uri:
https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/azureactivedirectory |
| URL error when invoking the operation | Ensure the tenant domain name is correct. | Ensure that Directory (tenant) ID noted from the application is in the correct format.
Example: 2060aafa-89d9-423d-9514-eac46338ec05 |
Frequently Asked Questions
Can I register a new application or use an existing application in the Azure portal to create an OAuth account?
Yes, you can register a new application or use an existing application in the Azure portal to create an OAuth account. For more information, refer to Register a service application in Azure Active Directory.
Where can I find the Application ID, Client ID, and Secret key values?
Locate the application credentials in the Azure Portal. For more information, refer to Microsoft Entra ID OAuth2 Account.
What are the required scopes and permissions for Azure Active Directory?
Refer to the Scopes and Permissions Required section above for the Delegated and Application permissions details. For any other permissions needed for the application, refer to Microsoft Graph permissions reference.
How can I use the Microsoft Entra ID OAuth2 account?
You can use the Microsoft Entra ID OAuth2 account to connect Microsoft Entra ID Snaps with data sources. For more details, refer to Configuring Microsoft Entra ID Accounts.
How do I get support?
For any support, contact the support team. The help icon in the Snap provides referential information for the selected Snap from the application.