Azure guest user creation by Microsoft Graph API in B2B/B2C Scenario Skip to main content
https://support.okta.com/help/answers?id=9062a000000qun5qak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
ADMIN FDJ - Gilles Morieux - SOGETIADMIN FDJ - Gilles Morieux - SOGETI 

Azure guest user creation by Microsoft Graph API in B2B/B2C Scenario

Is it possible creating Azure "guest user"  by Microsoft Graph API in Office 365 B2B Scenario ?
Because my Okta organization federating subsidiary companies with different Office365 tenants.
I would like provisioning Azure object (guest users, invitations....) with restful client from universal directory.
Didn't find anything about that, including custom code solution.
Any idea ?
Regards

 
Valentin NituValentin Nitu (Okta, Inc.)
Hey Giles, 

While we support Microsoft Graph API in Office we would need to understand the flow you are looking to achive. It sounds like you are trying to create the user as Azure guest via Okta to Office 365 aprovisioning. How should the users be created to allow the user to be created as guest user, what kind of roles should the user get?
As it seems it dosen`t seem like we might have a solution that can help with what you are looking to achive but further details can help us  better understand the setup and allow us to find a solution.
ADMIN FDJ - Gilles Morieux - SOGETIADMIN FDJ - Gilles Morieux - SOGETI
Hello Valentin,
 
In fact my scenario is very simple .
I need to create guest users in our O365 tenant  (of mother company) from Okta Users
B2B Scenario where other subsidiary companies users in Universal Directory need to have guest account on O365 mother company tenant
User-added image
--> How to do that with  Graph API (working fine)
POST https://graph.microsoft.com/v1.0/invitations
{
  "invitedUserEmailAddress": "xxxxxxx@gmail.com",
  "inviteRedirectUrl": "https://myapps.microsoft.com",
  "sendInvitationMessage": true
}
 
Regards,