To assign a Privileged Identity Management (PIM) role to a user in Azure, follow these steps:
1. Prerequisites
- Ensure you have the Privileged Role Administrator or Global Administrator role assigned to your account to manage PIM roles.
- The user you are assigning the role to must exist in Azure AD.
2. Access PIM
- Sign in to the Azure portal: https://portal.azure.com.
- Navigate to Azure Active Directory > Privileged Identity Management.
3. Select the Role Type
- Choose the scope of the role you want to assign:
- Azure AD Roles: For roles like Global Administrator, User Administrator, or Security Administrator.
- Azure Resource Roles: For roles like Owner, Contributor, or Reader tied to specific subscriptions or resources.
4. Assign a Role
For Azure AD Roles:
- In PIM, click on Azure AD Roles.
- Select Roles from the left-hand menu.
- Search for and select the role you want to assign (e.g., Global Administrator, User Administrator).
- Click Add assignments.
For Azure Resource Roles:
- In PIM, click on Azure Resources.
- Select the subscription or resource where the role assignment is needed.
- Click Manage resource roles.
- Search for the role you want to assign (e.g., Contributor, Reader) and select it.
5. Configure Role Assignment
- Select the User:
- Under Select member(s), search for and select the user to whom you want to assign the role.
- Choose Assignment Type:
- Eligible: The user can activate the role when needed. Ideal for just-in-time (JIT) access.
- Active: The user has immediate access to the role without activation. Use this sparingly for security reasons.
- Set Assignment Period:
- Define the start and end dates for the assignment if it’s temporary. Leave it open-ended for indefinite access.
- Click Assign.
6. Confirm the Assignment
- Go to the Assignments section under PIM for the respective scope (Azure AD Roles or Azure Resources).
- Verify the role is assigned to the user, and its status is as intended (Eligible or Active).
7. (Optional) Notify the User
- If the assignment is Eligible, let the user know they will need to activate the role through PIM whenever they need access.
Tips:
- Use eligible assignments wherever possible to adhere to the principle of least privilege.
- If required, configure approval workflows and MFA for role activation to enhance security.