Dear Team,
Your situation suggests that the SPN (Service Principal Name) is authenticated properly but is missing necessary context or permissions in the Power Platform (Dataverse) environment even though it has similar roles in Azure.
Even though your SPN has Azure roles and permissions, Power Platform (Dataverse) access is not automatically granted. Environments in Power Platform must explicitly include the SPN as a user with correct security roles inside the environment.
✔️ Check & Fix:
- Go to Power Platform Admin Center.
- Navigate to the Environment you're trying to access.
- Under "Settings" > "Users + permissions" > "Users", make sure your SPN (App registration) appears.
- If not:
- Add it manually, or
- Trigger a login/API call using that SPN against Dataverse API (
https://<env>.crm.dynamics.com/api/data/v9.1/
) to get it registered.
- Once registered, assign it an appropriate security role, e.g.,
Environment Maker
,System Administrator
, or a custom role with required privileges.
If you have any question feel free to ask me
Best Regards,