Skip to content

Conversation

@Manoj-Kesana
Copy link
Collaborator

Global Scope Label Count

Copy link
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

This pull request adds a new security assessment test (Test-Assessment.35015) to check if globally-scoped sensitivity label policies exceed the Microsoft-recommended limit of 25 labels. The test evaluates whether organizations are publishing too many labels globally, which can cause user confusion and misclassification.

Key changes:

  • Implements test logic to identify globally-scoped label policies and count unique published labels
  • Generates detailed reports showing global label policies and their label counts
  • Provides remediation guidance for reducing globally-published labels

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/powershell/tests/Test-Assessment.35015.ps1 New PowerShell test function that queries label policies, identifies globally-scoped policies, counts unique labels, and generates assessment results
src/powershell/tests/Test-Assessment.35015.md Documentation providing context, best practices, and remediation steps for managing global scope label counts

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

@Manoj-Kesana
Copy link
Collaborator Author

@copilot - please review again

Copy link
Contributor

Copilot AI commented Jan 9, 2026

@Manoj-Kesana I've opened a new pull request, #762, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 9, 2026 10:42
Fix incomplete global policy scope detection in Test-Assessment.35015
@Manoj-Kesana Manoj-Kesana marked this pull request as draft January 12, 2026 08:54
@Manoj-Kesana Manoj-Kesana marked this pull request as ready for review January 15, 2026 03:44
@Manoj-Kesana
Copy link
Collaborator Author

@alexandair - requesting your review as we have received comments from Sagar to proceed on this one with current logic

Copy link
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


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

@alexandair
Copy link
Collaborator

@Manoj-Kesana You didn't address Copilot's feedback.
Talk to @sandeepjha000 about how to get policies' scope.

@Manoj-Kesana Manoj-Kesana marked this pull request as draft January 16, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants