We are having domain level permissions for a customer and are using service account for getting access tokens. This is working alright for all users except one and we get access_denied error.
I am trying to access imap api.
Also, what does access_denied error mean? Is there a document that describes each oauth2 error on detail?
You can get access_denied error for a subset of users if the domain administrator turns off your app for an Organizational Unit (OU) containing the users.