We are trying to connect to a custom Dynamics 365 Finance service operation but are struggling to authorize.
We've set up an app registration
- Redirect_uri set to the dynamics url (root)
- Enabled implicit grant (both for access tokens and ID tokens)
- Single tenant
- Assigned the "Dynamics ERP > CustomService.FullAccess" API permission
- Assigned the "Dynamics ERP > Odata.FullAccess" API permission
- Assigned "Dynamicd ERP > Connector.FullAccess" API permission + granted admin consent for entire AD
- Created a secret
We've added the Application (client ID) within the Dynamics 365 environment with a user which has System Administrator role
We can successfully retrieve access tokens both via Postman and .NET (Microsoft.IdentityModel.Clients.ActiveDirectory)
we tried to reach both https://xxxxxxdevaossoap.cloudax.dynamics.com &https://xxxxxxdevaos.cloudax.dynamics.com
Yet when we call custom services, we get a 401 UnAuthorized
A call to Odata also fails for the same reason.