authentication azure portal

abhishek appu 41 Reputation points
2022-11-30T06:36:39.987+00:00

i have got an error while running this code the error is shown here:-

This is the error when runnig graph api====>>>>>>>>>>>>>>>>>>>>265575-capture.png
ServiceException: Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
Inner error:    AdditionalData:    date: 2022-11-30T05:25:13    request-id: ****5e62a-0ed5-49f4-9514-37b8b18b6232    client-request-id: ***e62a-0ed5-49f4-9514-37b8b18b****
ClientRequestId: ****e62a-0ed5-49f4-9514-37b8b18b****

this is the error when runnig graph api.....How to solve this issue?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,459 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 21,621 Reputation points Microsoft Employee
    2022-12-01T20:17:48.637+00:00

    Hi @abhishek appu , to access the Graph API you'll need to make sure you have the proper permissions. You'll need all the Delegated and Application permissions included here. Please let me know if you have any questions and I can help you further.

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James

    0 comments No comments