Cant Bulk Create Azure ad b2c users, not available in Azure Portal.

Rishi Verma 1 Reputation point
2021-01-11T13:02:21.253+00:00

55405-image.png

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,953 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rishi Verma 1 Reputation point
    2021-01-11T13:04:22+00:00

    I am looking to bulk create users without invite. Is there any way to achieve this?

    0 comments No comments

  2. 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:
    55384-image.png

    For social identities, you can use Graph Call as explained in the 2nd example in below document:

    https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http#example-2-create-a-user-with-social-and-local-account-identities

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.