I have been trying to create an office 365 federated user using Azure AD Graph API however it is always creating Cloud identity instead of "Synced with Active Directory". Here is a post query I am hitting;
Request to: https://graph.windows.net/{0}/users?api-version=1.5
{0}: Tenancy Name
{"accountEnabled": "true","displayName": "James","mailNickname": "CloudIdentity","usageLocation": "GB","passwordProfile": { "password" : "Temp@123", "forceChangePasswordNextLogin": "false" },"userPrincipalName": "[email protected]","immutableId": "nEmSERX0EeaAwwANOrGMiQ=="}
It is creating user successfully but as a said above, its creating Cloud Identity, what should I do to make it a federated user?
here are the two articles I followed but both are saying Immutable ID is the key which is already being passed:
https://auth0.com/docs/integrations/office-365-custom-provisioning https://yorkporc.wordpress.com/2014/08/03/enter-a-post-title/
NOTE: when I am doing login with one of the federated user, it gives this error:
Sorry, but we're having trouble signing you in Please try again in a few minutes. If this doesn't work, you might want to contact your admin and report the following error: 80048163.
Also the federated domain is subdomain;
cn.cloudidentity.in