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.