Creating and Managing Users in Microsoft Entra ID

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 9 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Lesson: Creating and Managing Users in Microsoft Entra ID

Introduction: The Foundation of Identity

In the ecosystem of Microsoft 365, your tenant is only as secure and functional as the identities that inhabit it. Microsoft Entra ID (formerly known as Azure Active Directory) serves as the central identity provider for your organization. Whether your employees are accessing email, collaborating on documents in SharePoint, or logging into third-party business applications, every action begins with a user account. Managing these identities effectively is not just an administrative task; it is the cornerstone of your organization's security posture and operational efficiency.

When we talk about "managing users," we are moving far beyond simply clicking a button to create an account. We are talking about the entire lifecycle of an identity: provisioning, assigning access, governing permissions, and eventually, deprovisioning when a user departs. A well-managed tenant ensures that the right people have access to the right resources at the right time, while simultaneously preventing unauthorized access through robust identity governance. If your user management process is disorganized, you invite security vulnerabilities, licensing waste, and administrative overhead that can cripple your IT department’s productivity.

In this lesson, we will explore the mechanics of creating and managing users within Microsoft Entra ID. We will cover the manual creation process, the power of bulk operations, the role of administrative roles, and the best practices for maintaining a clean and secure directory. By the end of this module, you will understand how to scale your identity management strategy from a handful of users to thousands, ensuring your tenant remains a secure and organized environment.


Not read yet

Understanding the User Object in Entra ID

Before we dive into the "how-to," it is essential to understand what a "user" actually is in the context of Entra ID. A user object is a digital representation of a person, a service, or a system entity that requires authentication to interact with your resources. Every user object contains a set of attributes—such as their display name, user principal name (UPN), job title, department, and location—that define who they are and what they can do.

The User Principal Name (UPN) is perhaps the most critical attribute. It is the identifier used to sign in to Microsoft 365 and other services, formatted like an email address (e.g., [email protected]). It is important to note that while the UPN often looks like an email address, it functions primarily as an identity login. Keeping your UPNs consistent and aligned with your organizational naming conventions is a foundational step in preventing confusion and technical debt.

Core Attributes of a User

When creating a user, you are essentially populating a database record with specific fields. Understanding these fields helps in automating management later:

  • Display Name: The friendly name shown in the Global Address List (GAL).
  • User Principal Name (UPN): The unique sign-in identifier.
  • Usage Location: A critical attribute for licensing; it determines which services are available based on the user's region.
  • Job Information: Including department, job title, and manager helps in creating dynamic groups and reporting structures.
  • Account Status: Whether the account is enabled or disabled.

Callout: User vs. Guest It is vital to distinguish between Member users and Guest users. A Member is typically an internal employee with a full account in your domain. A Guest is an external user, such as a vendor or consultant, invited to collaborate. Members can usually see the internal directory, while Guests have restricted visibility by default. Mixing these up can lead to accidental data exposure, so always verify the "User Type" when creating or inviting accounts.


Not read yet

Methods for Creating Users

There are three primary ways to bring a user into your Microsoft Entra ID environment: manual creation, bulk upload, and automated synchronization. Each method serves a different scale and use case.

1. Manual Creation

Manual creation is suitable for small organizations or for creating single, high-privilege administrative accounts. You perform this through the Microsoft Entra admin center.

Step-by-Step Instructions:

  1. Log in to the Microsoft Entra admin center.
  2. Navigate to Identity > Users > All users.
  3. Select New user and click Create new user.
  4. Fill in the required fields: User principal name, Display name, and Password.
  5. Assign the user to specific groups if needed, and set the Usage location (this is critical for license assignment).
  6. Click Review + create to finalize.

2. Bulk Creation

When you are onboarding a department or a new batch of employees, manual entry is inefficient. Microsoft provides a Bulk Upload feature that uses a CSV template.

  • Download the CSV template provided in the "Bulk create" interface.
  • Populate the rows with user data, ensuring the UPN and password requirements are met.
  • Upload the file back to the portal.
  • Review the validation report to ensure no errors occurred during the ingestion process.

3. Automated Synchronization (Microsoft Entra Connect)

For organizations with an on-premises Active Directory (AD), you shouldn't create users in the cloud at all. Instead, you use Microsoft Entra Connect (or the newer Microsoft Entra Cloud Sync). This tool synchronizes your local AD users to the cloud, making your local Active Directory the "source of truth."

Warning: The "Source of Truth" Trap If you have an on-premises directory synchronized to Entra ID, you must never edit user attributes (like the display name or email) directly in the Entra portal. The synchronization engine will overwrite your manual changes during the next cycle. Always make changes in your local Active Directory and let them flow up to the cloud.


Not read yet

Managing User Lifecycles and Best Practices

Identity management is a continuous process. People change jobs, departments merge, and employees eventually leave the organization. How you handle these transitions determines your security integrity.

The Joiner-Mover-Leaver Process

A robust IT strategy treats user management as a lifecycle:

  • Joiner: Onboarding involves creating the account, assigning the correct license, adding the user to necessary security groups, and configuring their access to specific applications.
  • Mover: When an employee changes roles, you must update their group memberships to reflect their new access needs. Crucially, you must also remove access to their old resources to adhere to the principle of least privilege.
  • Leaver: When an employee leaves, the account must be disabled or deleted. Best practice suggests disabling the account first to preserve data, followed by a waiting period before deletion to ensure no critical data is lost.

Best Practices for User Management

  1. Enforce Multi-Factor Authentication (MFA): Never create a user account without ensuring MFA is enforced. This is the single most effective way to prevent identity-based attacks.
  2. Use Dynamic Groups: Instead of manually adding users to groups (like "All Sales" or "US Employees"), use Dynamic Group rules based on user attributes. For example, a rule like (user.department -eq "Sales") automatically adds any user with "Sales" in their department field to the group.
  3. Naming Conventions: Standardize your UPNs and display names. A common format is [email protected]. Avoid using generic names like admin1 or tempuser, as these are targets for hackers.
  4. Audit Your Directory: Periodically review accounts, especially those with administrative roles. Look for "orphaned" accounts—accounts that belong to users who have left the company but were never disabled.

Not read yet

Practical Scripting with Microsoft Graph PowerShell

While the web portal is useful, automation is the key to managing a large environment. The Microsoft Graph PowerShell SDK is the modern standard for interacting with Entra ID.

Example: Creating a User via PowerShell

To use PowerShell, you must first install the module (Install-Module Microsoft.Graph) and connect with the appropriate permissions.

# Connect to Microsoft Graph with User.ReadWrite.All scope
Connect-MgGraph -Scopes "User.ReadWrite.All"

# Define user variables
$passwordProfile = @{
    Password = "Password123!ChangeMe"
    ForceChangePasswordNextSignIn = $true
}

# Create the user
New-MgUser -DisplayName "John Smith" `
           -MailNickname "jsmith" `
           -UserPrincipalName "[email protected]" `
           -UsageLocation "US" `
           -AccountEnabled `
           -PasswordProfile $passwordProfile

Explanation:

  • PasswordProfile: This object allows you to set an initial password and force the user to change it upon their first login, which is a critical security step.
  • MailNickname: This is often the alias part of the email address.
  • AccountEnabled: This ensures the user can sign in immediately upon creation.

Example: Bulk Updating User Attributes

If you need to update the department of 50 users based on a CSV file, scripting is significantly faster than manual entry.

$users = Import-Csv "C:\Temp\UpdateUsers.csv"

foreach ($row in $users) {
    Update-MgUser -UserId $row.UserPrincipalName -Department $row.Department
    Write-Host "Updated $($row.UserPrincipalName) to department $($row.Department)"
}

Tip: The Power of WhatIf When running scripts that modify user attributes, always use the -WhatIf parameter if the command supports it. This allows you to see what the script would do without actually applying the changes, which is a lifesaver when working with bulk operations.


Not read yet

Comparison: Manual vs. Automated Management

Feature Manual Management Automated/Scripted
Scalability Poor High
Error Rate High (Human error) Low (Consistent)
Speed Slow Instant
Auditing Difficult to track Easy (Log files)
Cost High (Admin hours) Low (Initial setup)

Common Pitfalls and How to Avoid Them

Even experienced administrators can fall into traps when managing Entra ID. Below are the most frequent issues and how to mitigate them.

1. Excessive Administrative Privileges

The most common mistake is assigning the "Global Administrator" role to too many users. In Entra ID, you should follow the "Principle of Least Privilege." If a user only needs to manage passwords, assign them the "Helpdesk Administrator" role, not "Global Administrator."

2. Ignoring License Management

Assigning licenses manually is a recipe for wasted budget. Use Group-Based Licensing. When you add a user to a group (e.g., the "Office 365 E3 Users" group), Entra ID automatically assigns the associated license. When you remove them from the group, the license is reclaimed. This ensures you are never paying for licenses that are not being used.

3. Lack of Naming Standards

If your directory is a mix of j.smith, jsmith, and johns, you will struggle with email routing and identity management. Establish a clear naming policy from day one and enforce it through your HR onboarding process.

4. Failing to Monitor Guest Access

Guest access is a major security risk if left unmanaged. Use Access Reviews to periodically ask resource owners if their external guests still require access. If they don't respond, you can automate the removal of those guest accounts.

Callout: The Importance of Access Reviews Access Reviews are a feature of Entra ID Governance. They allow you to automate the audit process. Instead of an IT admin guessing who needs access to what, the system sends an email to the "Owner" of a resource. The owner simply clicks "Approve" or "Deny." This offloads the administrative burden and increases the accuracy of your security posture.


Not read yet

Troubleshooting User Management Issues

Sometimes, things do not go as planned. Here is how to handle common troubleshooting scenarios:

  • User Cannot Sign In: Check if the account is enabled. If it is, check the "Sign-in logs" in the Entra admin center. This will tell you exactly why the sign-in failed (e.g., incorrect password, MFA challenge failed, or conditional access policy blocked the request).
  • Attributes Not Syncing: If you are using a hybrid environment, the error is almost always in the on-premises AD. Check the "Synchronization Service Manager" on your sync server to see if there are any "Export Errors" or "Sync Errors."
  • License Assignment Failure: This usually happens because the user's UsageLocation attribute is missing. Microsoft cannot assign a license if it doesn't know which country's privacy laws apply to the user.

Advanced Identity Governance

As your organization grows, managing users manually—or even with basic scripts—becomes unsustainable. This is where Identity Governance comes into play. It encompasses features like:

  • Entitlement Management: This allows you to bundle access to groups, applications, and SharePoint sites into an "Access Package." Users can request an access package, and managers can approve it, creating a self-service model that reduces IT tickets.
  • Privileged Identity Management (PIM): This is the gold standard for managing administrative roles. Instead of having permanent admin rights, administrators must "activate" their role for a limited time (e.g., 2 hours). This activation requires MFA and creates an audit trail, significantly reducing the risk of compromised admin accounts.
  • Lifecycle Workflows: You can configure automated triggers. For example, when a user's department changes in the HR system, a workflow can automatically remove them from old groups and add them to new ones.

Not read yet

Key Takeaways

Managing users in Microsoft Entra ID is a multi-faceted discipline that combines technical execution with organizational policy. As you move forward in your role, remember these core principles:

  1. Identity is the Perimeter: In the modern cloud-first world, the user identity is your most important security boundary. Treat every user account with the same level of concern as you would a physical firewall.
  2. Automation is Essential: Stop performing repetitive tasks manually. If you find yourself doing the same thing more than three times, write a script or use a dynamic rule to automate it.
  3. The Principle of Least Privilege: Only provide the permissions necessary for a user to do their job. Always prefer granular administrative roles over broad ones like Global Administrator.
  4. Governance Matters: Use tools like Access Reviews and Entitlement Management to ensure that access is not just granted, but also audited and revoked when no longer needed.
  5. Synchronization Hygiene: If you are in a hybrid environment, keep your on-premises Active Directory clean. It is the source of your cloud identity, and any errors there will propagate to your cloud environment.
  6. Lifecycle Management: Have a documented, repeatable process for onboarding, moving, and offboarding employees. This prevents security gaps and ensures you aren't paying for licenses you don't use.
  7. Monitor and Audit: The Entra ID portal provides a wealth of logs. Make it a habit to review your sign-in logs and audit logs to identify suspicious activity before it becomes a breach.

By mastering these concepts, you transition from being a simple "user creator" to an identity manager who protects the organization's most valuable assets. Continue to experiment in your lab environment, practice your scripting, and always stay updated with the latest features released by Microsoft, as the platform evolves rapidly.


Not read yet

Frequently Asked Questions (FAQ)

Q: Can I delete a user and bring them back? A: Yes, you can restore a deleted user within 30 days. After 30 days, the user is permanently deleted. When restored, the user keeps their original UPN, group memberships, and assigned licenses.

Q: What is the difference between a Cloud-only user and a Synced user? A: A Cloud-only user is created directly in Entra ID. A Synced user is created in your on-premises Active Directory and is brought into Entra ID via a sync tool. You cannot edit synced users in the cloud.

Q: Why is my license assignment failing? A: The most common cause is a missing UsageLocation attribute. Ensure that every user has a two-letter country code (e.g., "US", "GB", "CA") assigned to their profile.

Q: How can I see who changed a user's password? A: You can view this in the Audit Logs under the "Users" section in the Entra admin center. Filter the logs by "Activity" and look for "Update user." It will show you the initiator of the change.

Q: Can I change a user's UPN? A: Yes, you can change a UPN at any time. However, be aware that this changes the user's sign-in identifier. If the user has local files synced or specific application configurations tied to their old UPN, they may experience temporary connectivity issues. Always communicate UPN changes to the user in advance.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.