Manage Entra users, guests and groups
Create members and guests and manage security and Microsoft 365 groups with assigned or dynamic membership.
By Invicly Tech, , in Microsoft Entra & Microsoft 365 Administration. About 11 minutes to read.
In short
Entra ID holds two kinds of people: members, who belong to your organisation, and guests, who are invited from outside and keep signing in with their own account. Groups bundle people so you grant access, licences and policies once instead of user by user. Choosing the right group type and membership style decides how much manual work you do later.
Think of it like this: Assigned membership is a guest list you write by hand; dynamic membership is a rule at the door such as 'everyone from the Sales department'.
Explained simply
Most admin days start with people: someone new needs an account, a partner needs to see a document, a team needs a shared space. In Entra ID, each person is a user object with a name, a sign-in name and details such as department and job title.
Users come in two flavours. Members belong to your organisation; you create them and set their password. Guests belong somewhere else; you invite them by email, and they sign in with their own work, school or personal account. When the partnership ends, you remove the guest and their real account is untouched.
Groups save you from giving access one person at a time. A security group says 'these people may use this app or this file share'. A Microsoft 365 group is a shared workspace: it comes with a mailbox, a calendar, a SharePoint site, and can become a Teams team.
Membership can be assigned or dynamic. Assigned means someone adds and removes people by hand. Dynamic means Entra reads a rule, such as 'department equals Sales', and keeps the list up to date by itself. Dynamic groups need an Entra ID P1 licence and tidy user data to work well.
Press Play on a diagram to walk through it one step at a time.
- Grants access to apps, files and resources
- Members: users, devices, service principals, groups
- Used for licences and Conditional Access
- No mailbox or site of its own
- Collaboration: shared mailbox, calendar, SharePoint site
- Members: users only
- Can become a Microsoft Teams team
- Has owners who can manage members
- Users
- Members: anna@contoso.com
- Guests: sam_fabrikam.com#EXT#@contoso.onmicrosoft.com
- Security groups
- Assigned: SG-Finance-App
- Dynamic: SG-All-Sales
- Microsoft 365 groups
- Project Apollo (team, site, mailbox)
- 1Purpose
Access or collaboration?
- 2Group type
Security or Microsoft 365
- 3Reliable attribute?
Is department or location kept accurate?
- 4Licence?
Do members have Entra ID P1?
- 5Decide
Yes to both: dynamic. Otherwise: assigned with an owner
In depth
Creating member users properly
In the Entra admin center go to Users, All users, New user, Create new user. The required fields are the user principal name (the sign-in name, such as anna.lee@contoso.com), a display name and a password. Fill in the properties that other systems rely on: first and last name, job title, department, manager, office location and usage location. Dynamic groups, address books, approval flows and licence assignment all read these.
In larger organisations users are not created by hand at all. They come from an HR system through inbound provisioning, or from AD DS through sync. Even then, you should know the manual path for test users and emergencies, and you should know which system is the source of truth for each attribute, so you do not edit a value that sync will overwrite tonight.
- Required: UPN, display name, password
- Important: department, job title, manager, usage location
- Synced users: edit in the source, not in Entra
- Use clear naming for test users, such as test.joiner1
Inviting guests with B2B collaboration
Guests are invited from Users, New user, Invite external user, or by sharing a file or team, which creates the invitation for you. The guest gets an email, accepts it, and from then on signs in with their home account; your tenant holds a guest object with userType Guest and a UPN like sam_fabrikam.com#EXT#@contoso.onmicrosoft.com.
Control who can invite guests under External Identities, External collaboration settings. A common setup allows only admins and users in the Guest Inviter role to invite, and limits invitations to approved partner domains. Guests see less of your directory than members do by default. Review guests regularly; access reviews, covered later in the path, can ask sponsors whether each guest still needs access.
- Contoso admin to Contoso tenant: Invite sam@fabrikam.com1Invite sam@fabrikam.com
- Contoso tenant to Guest (Fabrikam): Invitation email with redemption link2Invitation email with redemption link
- Guest (Fabrikam) to Contoso tenant: Accept and sign in with Fabrikam account3Accept and sign in with Fabrikam account
- 4Guest object marked as acceptedContoso tenant to Contoso tenant: Guest object marked as accepted
- Contoso admin to Contoso tenant: Add guest to SG-Project-Apollo5Add guest to SG-Project-Apollo
Choosing a group type
Use a security group when the purpose is access: assigning an app, a licence, a Conditional Access policy, an Intune policy or permissions on an Azure resource. Security groups can contain users, devices, service principals and other groups (nesting works for many, but not all, features, so check before relying on it).
Use a Microsoft 365 group when people need to work together. Creating one provisions a group mailbox, a calendar, a SharePoint team site and a Planner plan, and you can turn it into a Teams team. Its members are users only. Owners can add members themselves, which takes load off IT.
Exchange also offers distribution lists and mail-enabled security groups for email-only needs; those are managed in the Exchange admin center.
- Access and policy: security group
- Collaboration space: Microsoft 365 group
- Email-only list: distribution list in Exchange
- Role-assignable groups: special security groups for Entra roles
Dynamic membership and its licence
A dynamic group has a rule instead of a member list. Rules compare attributes with operators such as -eq, -ne, -startsWith, -contains and -in, joined with -and, -or and -not. For example: (user.department -eq "Sales") -and (user.accountEnabled -eq true). Device groups use device attributes, such as device.deviceOSType -eq "Windows". A group is either user-based or device-based, never both, and you cannot add members by hand.
Entra re-evaluates rules when attributes change; large tenants can see delays of minutes or longer. Use Validate rules in the rule builder to test specific users before saving. Each user who is a member of a dynamic group needs an Entra ID P1 licence, which plans such as Microsoft 365 Business Premium and E3 include. Role-assignable groups cannot be dynamic.
- Rule example: user.department -eq "Sales"
- User rules and device rules cannot be mixed
- Validate rules before saving
- Licence: Entra ID P1 for members of dynamic groups
Learn it in 5 short steps
About 35m each. Track them with a timer in your plan.
- 1Create member users~35m
- 2Invite guest users~35m
- 3Compare security and Microsoft 365 groups~35m
- 4Use assigned and dynamic membership~35m
- 5Check licence needs for dynamic groups~35m
Key points
- Create members for staff; invite guests for partners so they keep their own credentials.
- Use security groups to grant access; use Microsoft 365 groups for teams that work together.
- Assigned membership is edited by hand; dynamic membership follows a rule on user or device attributes.
- Dynamic groups need Entra ID P1 for the users they cover, and clean attributes such as department.
- Give every group a clear name and at least one owner.
Key terms
Tap a card to flip it. 0/5 known
Examples
Dynamic rule for all enabled Sales staff in the UK:
(user.department -eq "Sales") -and (user.country -eq "United Kingdom") -and (user.accountEnabled -eq true)Membership updates automatically when HR data changes the department or country.
Creating a test member and a dynamic Sales group
Prerequisites: a lab tenant with Entra ID P1 and an admin account with User Administrator. Step 1: create test.sales1 with department Sales. Step 2: create a dynamic security group with the Sales rule. Step 3: wait a few minutes and list members. Expected evidence: test.sales1 appears. Step 4: change the department to Marketing and confirm the user drops out. Cleanup: delete the group and the user. Tenant-free version: write the rule and predict membership for a CSV of five synthetic users.
Connect-MgGraph -Scopes "User.ReadWrite.All","Group.ReadWrite.All"
$pw = @{ Password = "<temp-password>"; ForceChangePasswordNextSignIn = $true }
New-MgUser -DisplayName "Test Sales 1" -UserPrincipalName "test.sales1@contoso.onmicrosoft.com" `
-MailNickname "test.sales1" -Department "Sales" -UsageLocation "GB" `
-AccountEnabled -PasswordProfile $pw
$g = New-MgGroup -DisplayName "SG-All-Sales" -MailEnabled:$false -MailNickname "sg-all-sales" `
-SecurityEnabled -GroupTypes "DynamicMembership" `
-MembershipRule '(user.department -eq "Sales") -and (user.accountEnabled -eq true)' `
-MembershipRuleProcessingState "On"
Get-MgGroupMember -GroupId $g.Id | ForEach-Object { $_.AdditionalProperties.userPrincipalName }Inviting a partner as a guest
Contoso is working with Fabrikam on Project Apollo. Step 1: invite sam@fabrikam.com with a redirect to My Apps. Step 2: add the guest to the assigned security group SG-Project-Apollo, which grants the project site. Expected evidence: the guest shows userType Guest and, once Sam accepts, the invitation state changes to Accepted. Cleanup when the project ends: remove Sam from the group, then delete the guest object. Sam's Fabrikam account is not affected.
Connect-MgGraph -Scopes "User.Invite.All","GroupMember.ReadWrite.All"
$inv = New-MgInvitation -InvitedUserEmailAddress "sam@fabrikam.com" `
-InvitedUserDisplayName "Sam (Fabrikam)" `
-InviteRedirectUrl "https://myapps.microsoft.com" -SendInvitationMessage:$true
$grp = Get-MgGroup -Filter "displayName eq 'SG-Project-Apollo'"
New-MgGroupMember -GroupId $grp.Id -DirectoryObjectId $inv.InvitedUser.Id
Get-MgUser -UserId $inv.InvitedUser.Id -Property UserType,ExternalUserState |
Select-Object UserType, ExternalUserStateQuick reference
- Member = belongs to your organisation. Guest = invited outsider using their own account.
- Security group: access, licences, policies. Microsoft 365 group: mailbox, site, Teams.
- Membership is assigned or dynamic, never both in one group.
- Dynamic rule example: (user.department -eq "Sales") -and (user.accountEnabled -eq true)
- Dynamic groups need Entra ID P1 for their members.
- Control who may invite guests: External Identities, External collaboration settings.
- Give every group a naming prefix and at least one owner.
Common mistakes
- Building dynamic rules on attributes nobody keeps up to date, so people silently fall out of groups.
- Leaving groups without owners, so nobody can say who should be in them.
- Creating member accounts for contractors who already have their own company account; invite them as guests.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
For each need, choose a group type: give 40 people access to an accounting app; create a project space with files, chat and a calendar; send newsletters to all staff by email.
- Exercise 2medium
Write a dynamic membership rule for all enabled members (not guests) in the London office who work in Finance.
- Exercise 3hard
Tenant-free: given synthetic users anna (Sales, enabled), ben (Sales, disabled), cara (sales, enabled), dev (no department, enabled) and a guest erin (Sales), predict who joins the rule (user.department -eq "Sales") -and (user.accountEnabled -eq true). Then test in a lab if you can.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- What is the difference between a guest and a member?
- A member belongs to your organisation and signs in with your credentials. A guest is invited from outside and signs in with their own account; by default guests also see less of your directory.
- How long does a dynamic group take to update?
- Usually minutes, but large tenants or big rule changes can take longer. Plan onboarding so that access does not depend on an instant update.
- Can a Microsoft 365 group contain devices?
- No. Microsoft 365 groups contain users only. Use a security group for devices, for example to target Intune policies.
- Should I use groups or assign apps to users directly?
- Use groups. Direct assignments are hard to review and are often left behind when people change roles.