Issue with Accessing D365 Business Central using user_impersonation permission

98 views Asked by At

I am developing Microsoft Teams BOT using yo Teams and node.

The requirement is to access the Business Central using the BOT to fetch the environment with the user's delegated permission.

I am able to configure the BOT, App service and also able to fetch the current logged-in users details.

But the scp parameter of the Access Token is not returning the user_impersonation scope in int. hence, it's not working for me to access the Business Central.

Here are the screenshot of the permission. enter image description here

Any help is appreciated.

NOTE: I am using microsoft-graph-client library to perform this API Call.

0

There are 0 answers