Managing Users and Groups in Azure Active Directory

Azure Active Directory (Azure AD) is Microsoft's cloud-based identity and access management service. This section provides comprehensive documentation on how to manage users and groups within your Azure AD tenant.

Understanding Users

Types of Users

Creating Users

You can create users through the Azure portal, Azure AD PowerShell, or Microsoft Graph API.

Steps in Azure Portal:

  1. Navigate to Azure Active Directory.
  2. Select 'Users' from the left-hand menu.
  3. Click on 'New user' and choose 'Create new user'.
  4. Fill in the required details such as username, name, password, and assign usage location.
  5. Click 'Create'.

Managing User Properties

Once a user is created, you can manage their properties, including:

User States and Licensing

Users can have various states, such as active, invited, or blocked. Proper license assignment is crucial for accessing Azure AD premium features and other Microsoft cloud services.

Note: Ensure you have the necessary permissions (e.g., User Administrator, Global Administrator) to create and manage users.

Understanding Groups

Types of Groups

Group Creation Methods

Creating a Security Group

Steps in Azure Portal:

  1. Navigate to Azure Active Directory.
  2. Select 'Groups' from the left-hand menu.
  3. Click on 'New group'.
  4. Choose 'Security' as the group type.
  5. Enter a Group name and Description.
  6. Select Membership type: Assigned or Dynamic User/Device.
  7. Add members if using Assigned membership.
  8. Click 'Create'.

Managing Group Memberships

You can add or remove users and other groups as members of a group. For dynamic groups, membership is managed by the rules configured.

Tip: Use groups to simplify permission management. Instead of assigning permissions to individual users, assign them to a group and add users to that group.

Best Practices

Example: Creating a Dynamic Security Group for IT Admins

To create a dynamic security group that automatically includes users whose 'jobTitle' attribute is 'IT Administrator':


# Example using Azure AD PowerShell (requires Azure AD module)
Connect-AzureAD

$rule = "user.jobTitle -eq ""IT Administrator"""

New-AzureADGroup -DisplayName "IT Administrators Group" -Description "Dynamic group for IT Administrators" -MailEnabled $false -SecurityEnabled $true -Mail:$null -IsSecurityGroup $true -GroupTypes "DynamicMembership"

# After creating the group, you would typically set the dynamic membership rule.
# The Azure portal provides a user-friendly interface for this.
            
Warning: Dynamic membership rules require Azure AD Premium P1 or P2 licenses.

For more advanced scenarios and detailed API references, please refer to the official Azure Active Directory documentation.