question

BillyIKANDA-6371 avatar image
0 Votes"
BillyIKANDA-6371 asked BillyIKANDA-6371 commented

Scanning all accessible resource mailboxes of a given account

Hi there,

We are trying to create an application using O365 calendars, and we would like to use only the resource mailboxes while using a single logged-in account.
Is it possible to get a list of resource mailboxes that are accessible using the provided account?
Does the provided account have to be a delegate of those resource mailboxes or are permissions enough to access it?

I am asking this because I tried to access a resource mailbox, but It was giving me a DelegatedCalendarAccessDenied error when trying to use the "/users/{id | userPrincipalName}/calendar/events" endpoint, and I want to make sure that when the user is scanning for the resource mailboxes that their calendars can be accessed and that they have the required permissions for it.

In my case I was able to solve by adding my account as one of the Delegates of the resource mailbox, but this isn't mentioned in the documentation that you have to be a delegate when trying to access it or am I missing something or doing something wrong?

Thanks in advance,

Billy Cottrell

microsoft-graph-calendar
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding right tags/teams to assist.

1 Vote 1 ·

To access a any mailbox calendar using /users/{id | userPrincipalName}/calendar/events it to be a shared mailbox or a delegated mailbox to the signed-in user. Are you trying to find resource mailbox that the user has access to or the ones they have available like what GET https://graph.microsoft.com/beta/me/findRooms returns?

0 Votes 0 ·

Hi @Danstan,

Good to know that the signed-in user has to be a delegate of the resource mailbox. I would like to find all resource mailboxes that the signed-in user has access to, I tried using the findRooms endpoint and its something like that except that it also displays resource mailboxes that the signed-in user has no access to, which is not what I am looking for.

Thanks in advance,

Billy Cottrell

0 Votes 0 ·

0 Answers