Tuesday, July 4, 2023

How to create an Azure AD user ?

 In this article, we will explain how to create an Azure AD user via azure portal, azure cli

First with Azure Portal:

Search for Active Directory in the search box as by the screenshots below, then click on Azure Active Directory


In Azure Active Directory, click on +Add then click on  User


 Fill the fields, especially the user-princiapl-name.The user principal name is 2 parts: prefix is like an identifier for the user inside the domain, and the suffix is one of the domains you have added your azure AD



You can choose to auto-generate password. Password will be auto-generated with Azure and you can see what is the password that has been auto-generated. Or you create the password you want. Also, you can force the user to change his password on sign-in for first time

Once you click on the Click the button "Review + Create". It will create the user for you.



To create an AD user via azure cli, use the command:
az ad user create, the required parameters are the user-principal-name and the password
 
az ad user create --display-name 'John TheBlogger' --user-principal-name 'john.blogger@group-club.com' --password 'testpass'




To view the list of azure AD users, use the command:
az ad user list




To delete an Azure Ad user, it is enough to know the id (we can get the id from the list above)

az ad user delete --id 'abc'


We offer services for azure clouds, whether new projects, or support. For more information about our cloud services, please go to the link  https://http-cloud.com/cloud/

You can also contact us by going to https://http-cloud.com/contact-us/

We would like to thank you for reading our blog. Our next blog will be on how to create azure ad users in bulk

No comments:

Post a Comment