Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph API requesting user mailbox settings return "The process failed to get the correct properties." #2141

Closed
xpandax76 opened this issue Sep 22, 2023 · 3 comments

Comments

@xpandax76
Copy link

Hi,
Describe the bug
I am currently using graph api to query for user's mailbox settings. It is working for most users, however for some users, graph api returns 403 HTTP status with the response "The process failed to get the correct properties."

The request that is sent is: https://graph.microsoft.com/v1.0/users/[user-id]/mailboxSettings
The request is sent with an application with permission MailboxSettings.Read and the application was able to get some other user's mailbox settings so I don't think this is a permission issue even though the response return a 403 status code

Expected behavior
User's mailbox settings is returned

Thank you!

@andrueastman
Copy link
Member

Thanks for raising this @xpandax76

Any chance you can confirm whether you have application or delegated permissions on your app? Does any of the answers at the link below help out?
https://stackoverflow.com/questions/54767695/error-access-denied-on-mailboxsettings-for-users

@MartinM85
Copy link
Contributor

Is the user a member or a guest? Is it a regular user or shared calendar, room, equipment, etc.?

Also check (probably your admin) if there are any restrictions on the mailboxes. Admin can limit application permissions to specific mailboxes, but in that case I would expect different error message (Access to OData is disabled.)

@elvanguyen
Copy link

sorry for the late reponse
@andrueastman the app has the correct app permission as it was able to pull mailbox settings for other users.
@MartinM85 the user run into the issue seem to be either a service account for shared mailbox or a disabled user.
However, my ap was able to get mailbox settings for other shared mailbox service account as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants