I'm using the REST API to create a site in SharePoint Online and add an AAD security group to the site member group. When one of the AAD group members tries to access the site it displays the access request page. If the user logs out of O365 and logs back in they are able to access the site.
My basic steps are:
- Create site
_api/SPSiteManager/create
- Create AAD security group and add members
- Wait for AAD group to be synced to SharePoint
- Add AAD group to site member group
_api/web/sitegroups(<id>)/users
Is there a step that would fix this issue? I'm somewhat restricted in what I can use (no javascript, no powershell)