Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,448 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Here are the methods I tried using the Microsoft Graph API and their respective outcomes:
Method 1:
- After Single Sign-On (SSO), we obtain an access token.
- This access token is used as a bearer token for Graph API integration.
- Resulted in the following error:
- URL: https://graph.microsoft.com/v1.0/me/onenote/pages
- Response:
- Error Code: 40001
- Error Message: "The request does not contain a valid authentication token."
- URL: https://graph.microsoft.com/v1.0/users/gowrishankari97@outlook.com/events
- Response:
- Error Code: ErrorAccessDenied
- Error Message: "Access is denied. Check credentials and try again."
Method 2:
- Obtaining an access token based on the tenant ID and specified parameters.
- Using the obtained access token.
- Resulted in the following errors:
- URL: https://graph.microsoft.com/v1.0/me/events
- Response:
- Error Code: BadRequest
- Error Message: "/me request is only valid with delegated authentication flow."
- URL: https://graph.microsoft.com/v1.0/users/gowrishankari97@outlook.com/events
- Response:
- Error Code: OrganizationFromTenantGuidNotFound
- Error Message: "The tenant for tenant guid '{TENANT_ID}' does not exist."
Please let me know the solution for this.