A cloud-based identity and access management service for securing user authentication and resource access
Hi @Brett Wilson
This type of error AADSTS65001 may occur when you are not giving the admin consent or using the wrong scope in the request.
Based on the information you shared It seems you are giving the consent over the URL and portal.
I noticed that you are using the https://api.businesscentral.dynamics.com/.default scope.
which means it's client credential flow, and the same time the scop you have used the openid and offline_access are delegated permissions which means you are using 2 different permissions in one request,
Delegated permissions like openid, offline_access are used when a user is present interactive login.
Application permissions like https://api.businesscentral.dynamics.com/.default are used in client credentials flow no user context.
For client credentials flow, use only .default scope. For authorization code flow, use delegated scopes like openid, offline_access, and specific API scopes.
As mentioned above the error might cause due to wrong scope.
To understand better may I know how you get the access token can you share the request which you used.
Hope this helps. Do let us know if you any further queries by responding in the comments section.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.