As a temporary solution, I ended up checking the email domain to be one of:
'@harsh.com .',
'@Karima ben .',
'@Luxsparks .',
'@Microsoft Corporation .',
'@passport.*',
It will do for most cases.
But this will not work if the user is using his own email (e.g. Gmail) for registration in the Outlook calendar.
So now the question is:
I have two Outlook calendar users
- one registered with xxx@Stuff .com email
- one is using Office365 and has email like xxx@Hanes _custom_domain.com
Is there a way to distinguish these two using GraphAPI?