Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Accessing D365 Business Central using user_impersonation permission. #1504

Open
4 of 6 tasks
SigarDave1986 opened this issue Oct 17, 2023 · 0 comments
Open
4 of 6 tasks

Comments

@SigarDave1986
Copy link

SigarDave1986 commented Oct 17, 2023

Bug Report

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 currently 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 the microsoft-graph-client library to perform this API Call.

Prerequisites

  • Can you reproduce the problem?
  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.

Description

[Description of the bug or feature]

Console Errors: [Is there any console error]
No
Screenshots: [If applicable, add screenshots to help explain your problem]
image

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expected to happen]
The response token should have the scp of user_impersonation.

Actual behavior: [What actually happened]
The response token does not have the scp of user_impersonation.

Additional Context

Add any other context about the problem here..

Usage Information

Request ID - Value of the requestId field if you are receiving a Graph API error response

SDK Version - [SDK version you are using]
2.2.1

  • Node (Check, if using Node version of SDK)

Node Version - [The version of Node you are using]
14.19.1

  • Browser (Check, if using Browser version of SDK)

Browser Name - [The name of Browser that you are using for SDK]
EDGE
Version - [The version of the browser you are using]
117.0.2045.41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant