Provision group through API

Steel Contributor

We are building a flow to handle the creation of O365 groups but the end user experience is not usable.

 

Upon user request, we provision a group using the endpoint https://graph.microsoft.com/v1.0/groups but

1. It takes between 15 minutes and 1 hour before the user receives the mail from MS saying "Your group is ready". Why does it take so much longer to provision an O365 group through the API compared to the UI?

2. After receiving the mail, the user clicks the link to site but receives an error 'You need permission to access this site.'

3. Opening the documents view in Outlook online of his newly created group also show an error 'That doesn't look right Give us a moment, then try again. Thanks for your patience'

 

After waiting another 15 minutes and retrying, the user has access and the errors are gone. We can't move this to production this way.

 

Does anyone has better experiences with using the API for provisioning O365 groups?

5 Replies
I have seen this problems some times and not only using the Graph...have you consider to follow approach explained here: http://blog.atwork.at/post/2017/10/05/Provisioning-an-Office-365-group-with-an-approval-flow-and-Azu...

Hi Juan Carlops, I hope to avoid the overhead of creating an Azure function :(

 

Besides the Azure function you refer to is also using the graph API, so my guess is the issue won't be solved.

Yes...but what about using Groups Cmdlets in the Azure Function?
Bart we are looking at improving the provisioning time of the group's shared mailbox/calendar and SharePoint team site.
Thanks Christophe, looking forward to it.