Lesson 1 of 5 Microsoft Entra Users and Groups

Creating Users and Groups in Microsoft Entra ID

This lesson explains where users come from in Microsoft Entra ID, the group and membership types available, and which roles allow administrators to create them.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe cloud-only, synchronized and guest user accounts.
  • Distinguish between security groups and Microsoft 365 groups, and between assigned and dynamic membership.
  • Identify the Microsoft Entra roles needed to create users and groups.

Tenants and user accounts

A Microsoft Entra tenant is a dedicated instance of Microsoft Entra ID for an organization, identified by a tenant ID and an initial domain such as contoso.onmicrosoft.com; custom domains such as contoso.com are added and verified with a DNS TXT record. Each Azure subscription trusts exactly one tenant for authentication.

A user account is identified by its user principal name (UPN), such as [email protected], in a verified domain. User accounts come from three sources. Cloud-only users are created in the Microsoft Entra admin center, the Azure portal, PowerShell (New-MgUser) or the Azure CLI (az ad user create). Synchronized users are created in on-premises Active Directory and copied to Microsoft Entra ID by Microsoft Entra Connect Sync or Cloud Sync, so most of their attributes are changed on-premises. Guest users are external people invited through B2B collaboration, covered in the lesson Collaborating with External Users Through B2B.

To create many cloud users, Bulk create on the Users page provides a CSV template with columns for the name, UPN, initial password and attributes. Bulk invite and bulk delete use similar templates, and the results of each bulk operation are shown on the Bulk operation results page.

Sort into groups

Where does the account come from?

Exam skills 1.1.1

Decide how each user account came to exist in the tenant.

Log in to try this activity Interactive activities are free with an account.

Group types and membership types

Groups simplify administration: access, licences and policies are assigned to the group, and membership changes do the rest. A group has a group type and a membership type, which are independent choices.

A security group is used to grant access to resources: Azure role assignments, application assignments, licences and Conditional Access policies. A Microsoft 365 group also gives its members collaboration resources, such as a shared mailbox, calendar, SharePoint site and Teams workspace, and can be used for access as well. For Azure administration, security groups are the usual choice. Security groups can be role-assignable (eligible for Microsoft Entra role assignment) only if this is chosen at creation.

The membership type is Assigned, where owners or administrators add members manually; Dynamic user, where a rule on user attributes adds members; or Dynamic device, where a rule on device attributes adds devices. A group cannot contain both users and devices dynamically. The following comparison summarizes the membership types.

Assigned
Members added byOwners or administrators
Licence requiredMicrosoft Entra ID Free
Manual changesYes
Choose when Small or ad hoc teams
Dynamic user
Members added byA rule on user attributes
Licence requiredMicrosoft Entra ID P1
Manual changesNo; change the rule or attributes
Choose when Membership follows HR data such as department
Dynamic device
Members added byA rule on device attributes
Licence requiredMicrosoft Entra ID P1
Manual changesNo; change the rule or attributes
Choose when Device policies by OS or ownership

The following diagram shows a dynamic group for a finance department of 120 users, with a role and a licence assigned to the group rather than to each user.

A group design for 120 finance users who join and leave every month. A security group with dynamic user membership and the rule user.department -eq “Finance” follows the HR-set attribute automatically; the Reader role on the finance resource group and the Microsoft 365 E5 licence are both assigned to the group, so nothing is assigned user by user.
The scenario is illustrative.
Scenario questions

Choosing a group design

Exam skills 1.1.1

Choose the group type and membership type that fit each requirement.

Log in to try this activity Interactive activities are free with an account.

Who can create users and groups

Creating users needs a Microsoft Entra role such as User Administrator or Global Administrator; creating groups needs Groups Administrator, User Administrator or a higher role, and by default members can also create security groups unless the tenant setting is turned off. Azure RBAC roles, even Owner of every subscription, do not grant these permissions, because they apply to Azure resources, not directory objects.

Worked example

Choosing a group design

The finance department has 120 users, and people join and leave it every month. Members must receive Reader access to a resource group with finance reports and a Microsoft 365 E5 licence. The HR system already sets each user's department attribute, and the tenant has Microsoft Entra ID P1. The solution must minimize administrative effort.

Create a security group with Dynamic user membership and the rule (user.department -eq "Finance"). Assign the Reader role on the resource group to the group and assign the licence to the group with group-based licensing. Joiners and leavers then gain and lose both access and licences automatically when HR updates their department. An assigned group would work but would require manual membership changes each month.

Check yourself

A subscription Owner tries to create a user in Microsoft Entra ID and is refused. Why?

Show answer

Owner is an Azure RBAC role for Azure resources. Creating users needs a Microsoft Entra role such as User Administrator.

Exam Tips

Remember for the exam

  • Creating users and groups needs Microsoft Entra roles, not Azure RBAC roles.
  • Use security groups for Azure access; Microsoft 365 groups add collaboration resources.
  • Dynamic membership requires Microsoft Entra ID P1 and cannot be edited manually.
  • Bulk create uses a CSV template downloaded from the portal.