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 Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,211 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.