The correct answer is that the user does not have an appropriate Microsoft Entra ID license assigned. This is because Microsoft Graph PowerShell requires a valid Microsoft Entra ID license—such as Premium P1 or P2—to authenticate and access directory-level APIs; without it, the service cannot validate the user’s identity for Graph API calls, triggering the sign-in error shown. On the Microsoft 365 Endpoint Administrator MD-102 exam, this scenario tests your understanding of licensing dependencies for PowerShell authentication, often appearing as a trap where candidates mistakenly blame incorrect permissions or module versions. Remember that even with Global Admin rights, a user will fail to sign in if they lack the underlying license, as the error stems from entitlement, not role assignment. A useful memory tip: “No license, no Graph access—premium is a must for PowerShell success.”
MD-102 Manage identity and compliance Practice Question
This MD-102 practice question tests your understanding of manage identity and compliance. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
Exhibit: The following is a snippet from a Microsoft Entra ID audit log for a user sign-in event:
{
"id": "12345678-1234-1234-1234-123456789012",
"createdDateTime": "2025-03-01T14:30:00Z",
"userPrincipalName": "user@contoso.com",
"appDisplayName": "Microsoft Graph PowerShell",
"status": {
"errorCode": 50058,
"failureReason": "The user does not have an eligible license for this application."
},
"conditionalAccessStatus": "notApplied",
"riskLevel": "none",
"deviceDetail": {
"deviceId": "00000000-0000-0000-0000-000000000000",
"operatingSystem": "Windows 10",
"browser": "Other"
}
}
Refer to the exhibit. A user attempts to sign in to Microsoft Graph PowerShell and receives the error shown. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Exhibit: The following is a snippet from a Microsoft Entra ID audit log for a user sign-in event:
{
"id": "12345678-1234-1234-1234-123456789012",
"createdDateTime": "2025-03-01T14:30:00Z",
"userPrincipalName": "user@contoso.com",
"appDisplayName": "Microsoft Graph PowerShell",
"status": {
"errorCode": 50058,
"failureReason": "The user does not have an eligible license for this application."
},
"conditionalAccessStatus": "notApplied",
"riskLevel": "none",
"deviceDetail": {
"deviceId": "00000000-0000-0000-0000-000000000000",
"operatingSystem": "Windows 10",
"browser": "Other"
}
}
A
The user is not registered for MFA.
Why wrong: No MFA error in the log.
B
The user does not have an appropriate Microsoft Entra ID license assigned.
Error code 50058 indicates missing license.
C
The device is not registered in Microsoft Entra ID.
Why wrong: Device is not relevant to license error.
D
The sign-in was blocked by a Conditional Access policy.
Why wrong: ConditionalAccessStatus is 'notApplied'.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user does not have an appropriate Microsoft Entra ID license assigned.
The error shown indicates that the user lacks the required license for Microsoft Entra ID (formerly Azure AD) features needed to sign in to Microsoft Graph PowerShell. Microsoft Graph PowerShell requires an appropriate Microsoft Entra ID license (such as Premium P1 or P2) to access directory-level APIs and authentication methods. Without this license, the service cannot validate the user's identity for Graph API calls, resulting in the sign-in failure.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
The user does not have an appropriate Microsoft Entra ID license assigned.
Why this is correct
Error code 50058 indicates missing license.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The device is not registered in Microsoft Entra ID.
Why it's wrong here
Device is not relevant to license error.
✗
The sign-in was blocked by a Conditional Access policy.
Why it's wrong here
ConditionalAccessStatus is 'notApplied'.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Microsoft often tests the misconception that MFA registration or device compliance is the root cause of Graph PowerShell sign-in failures, when in fact the underlying license requirement for Microsoft Entra ID is the specific gate that Microsoft enforces for directory API access.
Detailed technical explanation
How to think about this question
Microsoft Graph PowerShell uses OAuth 2.0 and OpenID Connect to authenticate against Microsoft Entra ID, and the token issuance process checks for a valid license in the user's directory properties. Under the hood, the `Get-MgUser` cmdlet or similar calls require the `Directory.Read.All` permission, which is gated by a licensed Entra ID tenant; unlicensed users receive an HTTP 403 with a 'insufficient privileges' or 'license required' error. In real-world scenarios, organizations often assign Microsoft 365 E3/E5 licenses that include Entra ID P1, but if a user only has an Exchange Online license without Entra ID Premium, Graph PowerShell access will fail.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this MD-102 question in full detail.
Manage identity and compliance — This question tests Manage identity and compliance — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The user does not have an appropriate Microsoft Entra ID license assigned. — The error shown indicates that the user lacks the required license for Microsoft Entra ID (formerly Azure AD) features needed to sign in to Microsoft Graph PowerShell. Microsoft Graph PowerShell requires an appropriate Microsoft Entra ID license (such as Premium P1 or P2) to access directory-level APIs and authentication methods. Without this license, the service cannot validate the user's identity for Graph API calls, resulting in the sign-in failure.
What should I do if I get this MD-102 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This MD-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MD-102 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.