-
Notifications
You must be signed in to change notification settings - Fork 122
Data-35016: Mandatory labeling enabled for sensitivity labels #757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 (ID: 35016) to verify that mandatory labeling is enabled for sensitivity labels across Microsoft 365 workloads (Outlook, Teams, SharePoint/Groups, and Power BI). The test retrieves enabled label policies, parses their settings to check for mandatory labeling flags across different workloads, and generates a comprehensive report showing the current configuration status.
Key changes:
- New PowerShell test script that queries label policies and evaluates mandatory labeling settings
- Documentation explaining the security rationale and remediation steps
- Support for checking mandatory labeling across four workloads with override detection
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/powershell/tests/Test-Assessment.35016.ps1 | Implements the assessment logic to check sensitivity label policies for mandatory labeling configuration, including data collection, policy parsing, and markdown report generation |
| src/powershell/tests/Test-Assessment.35016.md | Provides comprehensive documentation explaining security risks of not having mandatory labeling and detailed remediation steps for each workload |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
… expected format Co-authored-by: Copilot <[email protected]>
|
@sandeepjha000 |
@alexandair - I am able to get the same test results. Thanks |
Data-35016: adding test