Home

Microsoft Graph to query whether a user is office mailbox or not

Ammar Hasayen
MVP

Hi, we are developing an application on premises using .NET. We have mailboxes on premises and mailboxes on Office365, and Azure AD Sync is in place.

 

From within the .net app, we want to query the Microsoft Graph, and ask a simple question: Give this SPN for the user, does he have mailbox in Office 365 or not.

 

How can we achieve this using the Microsoft graph?

1 Reply

How about this? Check the assignedLicenses property of the user object. If an Exchange Onine license assigned, you can assume that there is a mailbox for the user.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
ChirmyRam in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies