Skip to content

Network - 25480 - Bugfix - check appRoleAssignmentRequired before checking appRoleAssignedTo#1088

Closed
sandeepjha000 wants to merge 24 commits intodevfrom
bugfix/issue-973
Closed

Network - 25480 - Bugfix - check appRoleAssignmentRequired before checking appRoleAssignedTo#1088
sandeepjha000 wants to merge 24 commits intodevfrom
bugfix/issue-973

Conversation

@sandeepjha000
Copy link
Copy Markdown
Collaborator

Fixes #973

  • Split single query into two-step pattern (Q1: get SP ID, Q2: expand by ID) to avoid silent empty appRoleAssignedTo when combining $filter + $expand
  • Added appRoleAssignmentRequired in evaluation
  • Updated user-facing messages

millenniumfalcone and others added 20 commits March 16, 2026 09:08
Documented the provisioning process for Security Copilot Units (SCUs), including implementation effort, user impact, and configuration details.
Added information about Microsoft Entra ID RBAC for Security Copilot.
Added a new document detailing the management and monitoring of Security Compute Units (SCUs) for Microsoft Security Copilot, including implementation effort, user impact, and configuration guidance.
Document the management of plugins in Microsoft Security Copilot, including implementation effort and user impact.
Added documentation for the Threat Hunting Agent in Microsoft Defender, detailing implementation effort, user impact, overview, and configuration instructions.
Added documentation for the Defender Threat Intelligence Agent, detailing its implementation effort, user impact, and overview of its capabilities.
Document the use of Security Copilot for incident summaries and remediation.
Added documentation for analyzing potentially malicious files and scripts using Microsoft Security Copilot, including implementation effort, user impact, and overview of capabilities.
This document outlines the capabilities of Microsoft Security Copilot in providing AI-generated summaries of identities and devices, aiding security analysts in investigations and governance tasks.
Added documentation for Microsoft Defender Experts for XDR, detailing implementation effort, user impact, overview, configuration steps, and references.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes assessment 25480 (Quick Access assignments) by adjusting how the Quick Access service principal is queried from Microsoft Graph and by incorporating appRoleAssignmentRequired into the pass/fail evaluation to avoid false negatives when assignments are implicitly “All Users”.

Changes:

  • Reworks Graph collection into a two-step query (find SP → fetch details with $expand=appRoleAssignedTo) to avoid silent empty expansions when combining $filter + $expand.
  • Updates evaluation logic to pass when appRoleAssignmentRequired is false even if appRoleAssignedTo is empty.
  • Updates user-facing status/result messages for “not configured” and “unable to retrieve details” scenarios.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/powershell/tests/Test-Assessment.25480.ps1
Comment thread src/powershell/tests/Test-Assessment.25480.ps1
sandeepjha000 and others added 3 commits March 19, 2026 08:22
@sandeepjha000 sandeepjha000 added the ready for review PR is ready for review and merging label Mar 19, 2026
@sandeepjha000 sandeepjha000 changed the base branch from main to dev March 20, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review PR is ready for review and merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

25480 - Quick Access has assigned users or groups not working?

6 participants