How to create a user on azure active directory without login the azure

manavalan R 101 Reputation points
2021-04-10T07:26:49.313+00:00

Hi all, for my requirement is little different i need to create an new user on AAD without login the azure cloud. I already researched how to do this and found that, by using hybrid environments, creating the AA DS and also windows server then added the AA DS to the windows server. But my scenario we don't want to use the windows server to do this.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,665 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2021-04-12T12:48:36.493+00:00

    Hi @manavalan R · Thank you for reaching out.

    You can use Graph Explorer and use below call after signing in with user administrator or global administrator account:

    Call:
    POST https://graph.microsoft.com/v1.0/users

    Body
    {
    "accountEnabled": true,
    "displayName": "Adele Vance",
    "mailNickname": "AdeleV",
    "userPrincipalName": "AdeleV@Company portal .onmicrosoft.com",
    "passwordProfile" : {
    "forceChangePasswordNextSignIn": true,
    "password": "xWwvJ]6NMw+bWH-d"
    }
    }

    Read more: https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http

    To create guest users:

    Call:
    POST https://graph.microsoft.com/v1.0/invitations

    Body:
    {
    "invitedUserEmailAddress": "yyy@test .com",
    "inviteRedirectUrl": "https://myapp.contoso.com"
    }

    Read more: https://learn.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http

    To create users via PowerShell:

    New-AzureADUser -DisplayName "New User" -PasswordProfile $PasswordProfile -UserPrincipalName "NewUser@Company portal .com" -AccountEnabled $true -MailNickName "Newuser"

    **Read more: **https://learn.microsoft.com/en-us/powershell/module/azuread/new-azureaduser?view=azureadps-2.0

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful