Entra ID Access & App Identity
PIM · Conditional Access · authentication methods and passkeys · app registrations and enterprise apps · consent · managed identities
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Privileged Identity Management (PIM)
PIM provides time-based and approval-based role activation. It gives just-in-time access to Microsoft Entra ID roles and Azure resources, and it requires licences. Role settings (also called PIM policies) are defined per role: all assignments of one role follow the same settings, and one role's settings are independent of another's.
| Concept | What to remember |
|---|---|
| Eligible assignment | The member must perform an action (activation, MFA, justification, approval) to use the role. Access is no different from a permanent assignment; the person just doesn't hold it all the time. |
| Active assignment | No action needed to use the role. Also available to customers who don't use PIM. |
| Time-bound or permanent | Both types can have start and end dates. Role settings choose whether permanent eligible or permanent active assignments are allowed (Allow permanent eligible assignment or Expire eligible assignment after). |
| Extend / renew | Users request an extension (near expiry) or a renewal (after expiry). Both need approval from a Global Administrator or Privileged Role Administrator. |
| Who manages Entra role assignments | Privileged Role Administrator or Global Administrator. Managing PIM role settings needs at least Privileged Role Administrator. |
| Who manages Azure resource role assignments | A subscription administrator, a resource Owner, or a resource User Access Administrator. Privileged Role Administrators, Security Administrators and Security Readers don't see Azure resource role assignments by default. |
Role settings you can configure
| Setting | Detail |
|---|---|
| Activation maximum duration | 1 to 24 hours. |
| Require MFA on activation | Users might not be prompted if they already used strong credentials or MFA earlier in the session. |
| Require Conditional Access authentication context | Use it with authentication strengths to force a different method at activation. Create and enable the Conditional Access policy for the authentication context before you set it in PIM. |
| Require justification / ticket information | The ticket field is information only; PIM does not check it against any ticketing system. |
| Require approval to activate | Approvers don't need a role. Pick at least one (two recommended). With no approvers selected, active Privileged Role Administrators or Global Administrators approve. |
| MFA on active assignment | PIM can't enforce MFA when the user later uses an active assignment, because they are already active from the moment it's assigned. |
| Notifications | One event sends at most 1000 notifications. |
Gotchas
- Don't scope one Conditional Access policy to both the authentication context and a directory role. During activation the user has no role yet, so the policy wouldn't apply. Use two policies: one on the authentication context, one on the directory roles.
- To make users reauthenticate on every activation, set sign-in frequency to Every time in the session controls of the policy that targets the authentication context. After one reauthentication, a 10-minute window applies across Entra roles, Azure resource roles and PIM for Groups.
- Lockout: all Privileged Role Administrators/Global Administrators are only eligible, approval is required, and no approvers are set. Avoid it with emergency access accounts and named approvers.
- Anyone who can manage Conditional Access policies (for example Conditional Access Administrators or Security Administrators) can change or remove the requirements, or block eligible users from activating. Treat them as highly privileged.
- PIM prevents removal of the last active Global Administrator and Privileged Role Administrator assignments.
- Azure resource roles: you need to be at least User Access Administrator to assign. An assignment can't last less than five minutes and can't be removed within five minutes of being assigned. Azure ABAC conditions on eligible assignments are available for the Storage Blob Data Contributor, Owner and Reader roles.
Conditional Access policies
A policy is an if-then statement of assignments (users, target resources, network, conditions) and access controls (grant or session). It needs at least a name, users and/or groups, target resources, and a grant or block control. All assignments are combined with AND, and when several policies apply, all must be satisfied.
| Evaluation phase | What happens |
|---|---|
| Phase 1: collect session details | Network location and device identity are gathered. Runs for enabled and report-only policies. |
| Phase 2: enforcement | A block grant control stops here. Otherwise unmet grant controls are requested in order: MFA, compliant device, hybrid joined device, approved client app, app protection policy, password change, terms of use, custom controls. Session controls apply after all grant controls are met. |
Grant controls
| Control | Notes |
|---|---|
| Require multifactor authentication | Windows Hello for Business satisfies it. Can't be combined with Require authentication strength in one policy, because the built-in MFA strength equals the MFA control. |
| Require authentication strength | Built-in or custom strengths; needs Microsoft Entra ID P1. |
| Require device to be marked as compliant | Device must be registered in Microsoft Entra ID (and enrolled in Intune). Edge InPrivate on Windows counts as noncompliant. |
| Require hybrid joined device | Domain-joined Windows devices. Device state isn't supported with the device-code OAuth flow; use MFA instead. |
| Require app protection policy / approved client app | Needs a broker app on mobile. The approved client app grant is retiring in early March 2026; policies using only that grant must move to approved client app or app protection policy. |
| Require password change | For user risk. User must have registered for MFA first. The policy must target All resources and can't be combined with other controls such as compliant device. |
| Require risk remediation | Automatically applies authentication strength and sign-in frequency Every time; the user signs in again to clear the risk. |
Multiple selected controls require all by default; you can choose one of instead. Policies that target roles or groups are evaluated only when a token is issued, so a newly added member isn't affected until a new token. Custom controls are a preview capability. Grant controls for agent users are marked Preview, and agent identities support only Block access.
Session controls
- Application enforced restrictions: works only with Exchange Online and SharePoint Online; the app gives a limited or full experience from device state.
- Conditional Access App Control: reverse proxy integrated with Microsoft Defender for Cloud Apps.
- Sign-in frequency: hours, days or every time; works with apps that use OAuth 2.0 or OIDC. Persistent browser session keeps users signed in after the browser closes.
- Continuous access evaluation is on automatically. Disabling it works only when All resources is selected and no conditions are set.
- Disable resilience defaults: by default, during an outage existing sessions keep access while policy is enforced; if disabled, access is denied when sessions expire.
- Token protection ensures a token is usable only from the intended device.
Test before you enforce
- Report-only mode evaluates the policy at sign-in without enforcing it. Results appear in the Conditional Access and Report-only tabs of sign-in logs. It can't be used for items in the User actions scope.
- Report-only policies that require a compliant device can prompt macOS, iOS and Android users to choose a device certificate. Exclude those platforms from such report-only policies.
- The Conditional Access Insights and Reporting workbook needs Microsoft Entra ID P1 and a Log Analytics workspace that receives sign-in logs.
- What If simulates a sign-in for a user, agent identity or single-tenant service principal. Required conditions: identity, target resource, device platform and client app. Only enabled and report-only policies are evaluated, and service dependencies (for example Exchange Online for Teams) are not tested.
- The device platform condition comes from unverified sources such as user agent strings that can be changed. By default a new policy applies to all client app types.
Authentication methods, MFA and passwordless
Manage methods in the Authentication methods policy (at least Authentication Policy Administrator; Entra admin center, Authentication methods, Policies). It is the recommended place and can scope each method to users or groups.
| Method | Primary (first factor) | As MFA / second factor |
|---|---|---|
| Password | Yes | No |
| SMS sign-in | Yes | MFA |
| Temporary Access Pass (TAP) | Yes | MFA |
| Passkey (FIDO2), Windows Hello for Business, certificate-based authentication, synced passkey | Yes | MFA (Windows Hello for Business only as a step-up MFA credential when the user is enabled for passkey and has one registered) |
| Microsoft Authenticator passwordless | Yes | No |
| Microsoft Authenticator push, voice call, software OATH token | No | MFA |
Microsoft recommends phishing-resistant methods: Windows Hello for Business, passkeys (FIDO2) and FIDO2 security keys, and certificate-based authentication. Platform Credential for macOS, synced passkeys and passkeys in Microsoft Authenticator are also listed as phishing-resistant.
Authentication strengths
| Combination | MFA strength | Passwordless MFA strength | Phishing-resistant MFA strength |
|---|---|---|---|
| FIDO2 security key | yes | yes | yes |
| Windows Hello for Business or platform credential | yes | yes | yes |
| Certificate-based authentication (multifactor) | yes | yes | yes |
| Microsoft Authenticator (phone sign-in) | yes | yes | no |
| Temporary Access Pass | yes | no | no |
| Password plus something you have (SMS, voice, push, OATH) | yes | no | no |
- The three built-in strengths are always available and can't be modified; you can also create custom strengths. A strength is applied with the Require authentication strength grant control and needs Microsoft Entra ID P1.
- A strength doesn't restrict the initial sign-in: Conditional Access is evaluated after it. A user can still type a password but must then use a method the strength allows.
- A strength is built on the Authentication methods policy: the policy enables the methods for users, and the strength further limits them for a scenario.
- With Windows Hello for Business, if the user signed in with a password and the strength requires Windows Hello, they must restart the session and pick it under Sign-in options.
Passkeys (FIDO2)
- Available in all Microsoft Entra ID editions, including Free; no extra licence. They use WebAuthn and CTAP.
- Enable them in order: enable passkey profiles, create a profile (attestation, passkey type device-bound or synced, AAGUID restrictions), apply it to a group, optionally enable synced passkeys, optionally enforce with a Conditional Access authentication strength.
- An Authentication Policy Administrator configures the profile that enables synced passkeys.
- Synced passkeys don't support attestation. If attestation is enforced on a profile, only device-bound passkeys are allowed.
- FIDO2 security keys are recommended for highly regulated industries and users with elevated privileges.
MFA basics and legacy policies
- MFA needs two or more of: something you know, something you have, something you are.
- Security defaults quickly enable Microsoft Authenticator for all users; for more granular control use Conditional Access.
- Number matching is enabled for all Authenticator push notifications. It isn't supported for push notifications on Apple Watch or Android wearables.
- Legacy MFA and SSPR policies still count: a user enabled for a method in any policy can use it, so to block a method you must disable it in all policies. Beginning September 30, 2025, authentication methods can't be managed in the legacy policies. Security questions can only be enabled in the legacy SSPR policy.
App registrations and enterprise applications
| App registration | Enterprise application | |
|---|---|---|
| What it is | The application object: the blueprint, with identifiers, credentials, API permissions and supported account types. | The service principal: the instance in a tenant that defines what the app can do there and who can use it. |
| Created | By registering the app. Needs at least Application Developer. The object can't be moved to another tenant. | From the application object through consent. |
- Supported account types: single tenant only (recommended for most apps), multiple Entra ID tenants, any Entra tenant plus personal Microsoft accounts, or personal accounts only.
- New app registrations are hidden to users by default. To show one on My Apps, set Visible to users to Yes on the enterprise app's Properties page.
- Credentials: Microsoft recommends a certificate rather than a client secret before production (accepted files: .cer, .pem, .crt). Client secrets are less secure and should not be used in production. Secret lifetime is 24 months at most (under 12 months recommended), and the value is never shown again after you leave the page.
- Workload identity federation lets an app registration or user-assigned managed identity trust tokens from an external IdP such as GitHub or Google, so no secret is stored. Tokens issued by Microsoft Entra ID can't be used in this flow.
- Assignment required = Yes: users and other apps must be assigned before they can get a token. Global Administrators can sign in regardless. Only assigned users see the app on My Apps, even when assignment isn't required.
- Assigning a group gives access to its direct members only; nested groups aren't supported. Group-based assignment needs Microsoft Entra ID P1 or P2. Roles that can assign users: Cloud Application Administrator, Application Administrator, User Administrator, or the service principal owner.
Permissions, OAuth grants and consent
| Delegated permissions | Application permissions | |
|---|---|---|
| Also called | Scopes, OAuth2 permission scopes | App roles, app-only permissions |
| Context | On behalf of a signed-in user; limited to what that user can access | No user; can access any data the permission covers (for example Files.Read.All reads any file in the tenant) |
| Who can consent | Users for their own data, or an admin for all users | Only an admin |
| Result in Graph | OAuth2PermissionGrant | appRoleAssignment |
User consent settings
By default, all users can consent to permissions that don't need administrator consent. The Entra admin center offers three built-in choices: disable user consent; allow users to consent to apps from verified publishers or your organization, but only for permissions you classify as low impact; or allow users to consent to all apps (any permission not requiring admin consent). Microsoft recommends allowing user consent only for apps from verified publishers. You can also create custom app consent policies.
- Configure it at Enterprise apps, Consent and permissions, User consent settings. A Privileged Role Administrator role is needed; Global Administrator is required only when using the Entra admin center.
- Graph PowerShell:
Connect-MgGraph -Scopes "Policy.ReadWrite.Authorization", thenUpdate-MgPolicyAuthorizationPolicy -BodyParameter $bodywith built-in policiesmicrosoft-user-default-lowormicrosoft-user-default-legacy. Keep any existingManagePermissionGrantsForOwnedResource.*policies in the collection. - Changes affect future consent only. Existing grants remain until revoked.
- Apps that require user assignment must have their permissions consented by an administrator, even if user consent is allowed.
Admin consent
- Roles for tenant-wide admin consent: Privileged Role Administrator (any permission, any API); Cloud Application Administrator, AI Administrator or Application Administrator (any permission except Microsoft Graph app roles); or a custom directory role that includes the permission.
- By default, tenant-wide consent lets all users access the app. To restrict who can sign in, require user assignment. Granting it may revoke tenant-wide permissions already granted to that app; permissions users granted for themselves aren't affected.
- Permission requests with custom application scopes aren't considered high-privilege. Users are prompted again if an app asks for a permission the admin hasn't granted.
- Admin consent URL format:
https://login.microsoftonline.com/{organization}/adminconsent?client_id={client-id}.
Admin consent workflow
- Lets users request approval for apps they can't consent to. A Global Administrator is needed to turn it on (Enterprise apps, Consent and permissions, Admin consent settings); it can take up to an hour to become enabled.
- Reviewers can view, block or deny requests. Only Global Administrators can approve requests for Microsoft Graph app roles. Naming someone a reviewer doesn't raise their privileges: they need the permissions to grant consent for the requested app.
- Reviewing grants: in Enterprise apps, Permissions, the Admin consent tab lists tenant-wide grants. You can't revoke grants on the User consent tab in the portal; use Microsoft Graph or PowerShell.
Managed identities for Azure resources
A managed identity lets code get Microsoft Entra tokens without storing credentials. It costs nothing extra and can be authorized with Azure RBAC. The security boundary of the identity is the resource it's attached to: any code on that resource can request tokens.
| Property | System-assigned | User-assigned |
|---|---|---|
| Creation | On the Azure resource itself | Stand-alone Azure resource (Managed Identity Contributor to create) |
| Lifecycle | Deleted with the resource | Independent; delete it explicitly |
| Sharing | One resource only | Can be shared by many resources |
| Best fit | Single-resource workloads; audit logs that name the resource; permissions removed with the resource | Many resources sharing one identity; replicated or rapidly recreated resources; access needed before deployment; fewer approvals and role assignments |
- System-assigned role assignments can't be created in advance, which can break deployments if the creator can't create role assignments. A user-assigned identity and its roles can be set up before the resources.
- Role assignments are not deleted when an identity is deleted. Orphans show as "Identity not found" (ObjectType Unknown); remove them manually so you don't hit the role assignment limit.
- Deleting a user-assigned identity doesn't remove it from the resources it was assigned to. To list or read one you need Managed Identity Operator or Contributor.
- Anyone who can run code on a resource with a managed identity can use all permissions of that identity; grant such access only when needed.
- Authorization changes reach a managed identity token only on refresh; the back-end caches tokens per resource URI for around 24 hours.
- IMDS default: with a system-assigned identity enabled and none named in the request, IMDS uses it. If only user-assigned identities exist and more than one is assigned, requests fail unless you name the clientId or resourceId.
- A managed identity can be used as a federated identity credential on an Entra app, with a limit of 20 FICs.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Remove role assignments whose identity was deleted (ObjectType Unknown) | - | Get-AzRoleAssignment | Where-Object {$_.ObjectType -eq "Unknown"} | Remove-AzRoleAssignment |
| Connect to Graph to change user consent settings | - | Connect-MgGraph -Scopes "Policy.ReadWrite.Authorization" |
| Update the default user consent policies | - | Update-MgPolicyAuthorizationPolicy -BodyParameter $body |
Exam Tips
Tick each tip once you can answer it without looking.
“Admin should only hold a role while doing admin work” → PIM: make them eligible (time-bound) and require activation. Trap: An eligible assignment gives the same access as a permanent one; the difference is only that it must be activated.
“Force a different, stronger sign-in method when a role is activated” → PIM role setting Require Conditional Access authentication context plus an authentication strength, with the CA policy created first. Trap: Don't scope one CA policy to the authentication context and a directory role together: at activation the user has no role yet.
“Approval required for activation, no approvers chosen” → Active Privileged Role Administrators / Global Administrators approve. Trap: If every such admin is only eligible and no approvers are set, the tenant can lock out.
“Extend or renew an expiring PIM assignment” → User requests it; a Global Administrator or Privileged Role Administrator approves. Trap: Extend is before expiry, renew is after expiry.
“Who can manage PIM for Azure resource roles” → Subscription administrator, resource Owner or User Access Administrator. Trap: Privileged Role Administrator and Security Administrator don't see Azure resource role assignments by default.
“Test a new Conditional Access policy without affecting users” → Report-only mode (check sign-in logs or the Insights workbook); What If to simulate one sign-in. Trap: Report-only can't evaluate User actions scope, and the workbook needs Entra ID P1 plus Log Analytics.
“Policy needs MFA and also a specific strength” → Use Require authentication strength only. Trap: MFA and authentication strength can't be combined in one policy: the built-in MFA strength equals the MFA control.
“Block sign-ins that don't use FIDO2, Windows Hello or certificates” → Phishing-resistant MFA strength in a Conditional Access policy. Trap: Passwordless MFA strength also allows Microsoft Authenticator phone sign-in; a strength doesn't stop the first password entry.
“User added to a CA-targeted group still isn't challenged” → Role/group targeting is evaluated when a token is issued; they need a new token. Trap: A policy isn't retroactive: a user who already holds a valid token isn't affected. Microsoft's best practice is to trigger Conditional Access evaluation during role or group activation with PIM.
“Enable synced passkeys for a group” → Passkey profile (Authentication Policy Administrator) with type Synced. Trap: Synced passkeys don't support attestation; enforcing attestation allows only device-bound passkeys.
“Why can a user still use voice calls after you disabled them in the Authentication methods policy” → Legacy MFA or SSPR policy still enables it. Trap: A method is blocked only if disabled in all policies.
“App registration vs enterprise app” → Registration = application object (blueprint); enterprise app = service principal in each tenant. Trap: You can't move an application object between tenants; the service principal is created through consent.
“Production app needs credentials” → Certificate or federated credential; client secret only for testing. Trap: Client secret max lifetime is 24 months and its value is shown once.
“Only some users may use an enterprise app even after admin consent” → Set Assignment required to Yes and assign users or groups. Trap: Tenant-wide consent lets all users in by default; nested groups aren't supported; Global Administrators bypass assignment.
“Allow users to consent only to low-impact permissions from verified publishers” → User consent setting for verified publishers, with permissions classified as low impact. Trap: Application permissions always need an admin; users can't consent to them.
“Who grants consent for Microsoft Graph application permissions” → Privileged Role Administrator (Cloud App Administrator and Application Administrator can't for Graph app roles). Trap: In the admin consent workflow, only Global Administrators approve Graph app role requests.
“Several VMs share access to the same storage; resources are recreated often” → One user-assigned managed identity. Trap: System-assigned identities die with the VM and can hit Entra object creation rate limits.
“Role removed from a managed identity but access persists for hours” → Managed identity tokens are cached for around 24 hours per resource URI. Trap: Deleting an identity doesn't delete its role assignments; clean up "Identity not found" entries.
Sources
- What is Privileged Identity Management?
- Configure Microsoft Entra role settings in PIM
- Activate Microsoft Entra roles in PIM
- Assign Azure resource roles in Privileged Identity Management
- Build Conditional Access policies
- Configure grant controls
- Manage session controls
- Conditional Access policy insights: report-only mode
- The Conditional Access What If tool
- Microsoft Entra authentication overview
- Passkeys (FIDO2) authentication method
- Conditional Access authentication strengths
- Microsoft Entra multifactor authentication overview
- Number matching in Authenticator push notifications
- How to enable passkeys (FIDO2)
- Manage authentication methods
- Application model
- Register an app in Microsoft Entra ID
- Add and manage app credentials
- Enterprise application properties
- Manage users and groups assignment to an application
- Workload identity federation
- Permissions and consent overview
- Overview of user and admin consent
- Configure how users consent to applications
- Grant tenant-wide admin consent to an application
- Configure the admin consent workflow
- Review permissions granted to enterprise applications
- Managed identities for Azure resources
- Managed identity best practice recommendations
- Manage user-assigned managed identities
- Managed identities FAQ
Checked against Microsoft Learn on November 13, 2026.