Why OAuth Workflow fails with 400 status code for an Owner account?

Anns 21 Reputation points
2023-03-13T15:34:00.2566667+00:00

I have set up Oauth Flow in my application. I have 2 types of accounts for my Azure AD. One is an Owner account and the other is a Global Administrator(Sub user of the owner) account. My implementation works for the global administrator perfectly fine but fails with the Admin account. Why?

I flawlessly call APIs with the access token generated for the global administrator and everything works fine.
Is there any restriction or I am doing something wrong?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
901 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
647 questions
Microsoft Graph Identity API
Microsoft Graph Identity API
A Microsoft API to access Azure Active Directory (Azure AD) resources to enable scenarios like managing administrator (directory) roles, inviting external users to an organization, and, if you are a Cloud Solution Provider (CSP), managing your customer's data.
273 questions
Microsoft Graph Teamwork API
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
739 questions
{count} votes