Snowflake Connector for Microsoft Power Platform: Configure the OAuth resource in Microsoft Entra ID¶
The process for configuring OAuth in Microsoft Entra includes the following steps:
-
Navigate to the Microsoft Azure Portal and authenticate.
-
Navigate to Microsoft Entra ID.
-
Select App Registrations.
-
Select New Registration.
-
Enter ‘Snowflake OAuth Resource’, or similar value as the Name.
-
Verify the Supported account types are set to Single Tenant.
-
Select Register.
-
Select Expose an API.
-
Select the link next to Application ID URI to add the Application ID URI. The Application ID URI will be in the format Application ID URI <api://9xxxxxxxxxxxxxxxxxx>
-
For Delegated Auth or For Service Principal Auth
-
For Delegated Auth Only
- Select Add a Scope to add a scope representing the Snowflake role.
- Select who can consent.
- Add a description.
- Click Add Scope to save. Example: session:scope:analyst to restrict users having specific roles, and session:role-any to allow users of any role.
-
For Service Principal Auth Only
To add a Snowflake role as a role for OAuth flows where the programmatic client requests an access token for itself, follow these steps:
-
Select App Roles.
-
Select +Create app role.
-
Check Applications as “Allowed member types”.
-
For value enter
Example: session:role:analyst to connect to a specific role, or session:role-any for any role which the service user is mapped to.
Avoid high-privilege roles such as ACCOUNTADMIN, SECURITYADMIN or ORGADMIN.
-
-
[Optional] If a security integration is already being used in Snowflake with another Microsoft product such as PowerBI and with a different claim mapping, the manifest will need to be modified. The manifest will need to emit tokens using a different issuer, so that a separate security integration in Snowflake with the unique claim mapping can be created.
-
Select Manifest.
-
Find the attribute
requestedAccessTokenVersionand set the value to “2”.- When requestedAccessTokenVersion is set to “2”, the Access Token is going to have an issuer of format:
https://login.microsoftonline.com/<Tenant-ID>/v2.0 - When requestedAccessTokenVersion is set to “1”, the Access Token is going to have an issuer of format:
https://sts.windows.net/<tenant-ID>/
- When requestedAccessTokenVersion is set to “2”, the Access Token is going to have an issuer of format:
-
Select Save.
Next steps¶
After completing these procedures, follow the steps in Snowflake Connector for Microsoft Power Platform: Create OAuth client in Microsoft Entra ID.