Hello,
I am using PowerShell to create Azure AD (onmicrosoft.com) users profiles.
I also have to use a Graph API service because Azure AD does not have a field for employee number, so I am using an extended attribute.
Anyways, I am using [https://graph.windows.net/ ... -ContentType "application/json" ...] to invoke this rest service
My script will cruise along just fine adding users, and then all the suddent I will get a 400 error, out of the blue. I can really cut this down by adding a 30 second delay, but that really makes the script drag along.
When you use New-MsolUser create user, are you really just adding an entry to a queue, to eventually create the user?
I am going to try sitting in a loop and querying the user profile, utilizing Graph API, and then break out of the loop as soon as I get a filled response. That's just extra network traffic and noise, so I would rather not go down that path.
Is there a recommended way that I should handle waiting for the user to be ready, before invoking a Graph API service?
Notes:
Library: Microsoft.IdentityModel.Clients.ActiveDirectory.2.19.208020213\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll
API Version: [?api-version=1.6]
Thank You,
Jeff P