I am looking to bulk create users without invite. Is there any way to achieve this?
Cant Bulk Create Azure ad b2c users, not available in Azure Portal.
2 answers
Sort by: Most helpful
-
-
AmanpreetSingh-MSFT 56,691 Reputation points
2021-01-11T15:14:58.1+00:00 Hi @Rishi Verma · Thank you for reaching out.
You can refer to following PowerShell script to create local accounts in bulk (you may need to modify it as per your requirement):
Connect-azuread $users = import-csv C:\temp\Admin.csv $PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile $PasswordProfile.Password = "P@$$w0rd" foreach ($usr in $users) { New-AzureADUser -DisplayName $usr.name -PasswordProfile $PasswordProfile -UserPrincipalName $usr.upn -AccountEnabled $true -MailNickName $usr.email }
Below is how my C:\temp\Admin.csv file looks:
For social identities, you can use Graph Call as explained in the 2nd example in below document:
And for creating bulk social identities via Graph API, you can combine multiple requests in one HTTP call using JSON batching as documented here: https://learn.microsoft.com/en-us/graph/json-batching
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.