Hello Narender Singh Pawar,
Thank you for contacting Microsoft Support!
The “InvalidAuthenticationToken” error typically occurs when the access token used in your request is invalid or not properly configured. Here are some steps to help you resolve this issue:
- Check Token Validity: Ensure that the access token is valid and not expired. You can use tools like JWT.io to decode and verify the token.
- Correct Scopes: Make sure that the token includes the correct scopes for the permissions you have granted. For example, your token should include
Files.Read.All
andFiles.ReadWrite.All
. - Consent: Ensure that the necessary permissions have been consented to by an administrator if required.
- Access Token in Header: Make sure that the access token is included in the HTTP Authorization header of your request as a Bearer token.
Please check documentation and follow the steps provided. Use Postman with the Microsoft Graph API
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.