Skip to content

Conversation

@alexandair
Copy link
Collaborator

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 PR adds a new assessment test (ID 35005) to check whether sensitivity labels are enabled in SharePoint Online and OneDrive for Business. The test verifies that the EnableAIPIntegration setting is enabled, which allows users to apply Microsoft Information Protection labels to documents stored in these services.

  • Implements assessment function Test-Assessment-35005 to check SharePoint Online sensitivity label integration
  • Adds comprehensive unit tests covering success, failure, and error scenarios
  • Provides remediation documentation with PowerShell commands and Microsoft Learn references

Reviewed changes

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

File Description
src/powershell/tests/Test-Assessment.35005.ps1 Implements the main assessment logic to query SharePoint tenant settings and evaluate EnableAIPIntegration status
src/powershell/tests/Test-Assessment.35005.md Provides documentation explaining the security importance and remediation steps
code-tests/test-assessments/Test-Assessment.35005.Tests.ps1 Adds Pester tests for three scenarios: query errors, disabled integration, and enabled integration

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

contant --> content

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 4, 2026 09:47
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 3 out of 3 changed files in this pull request and generated 1 comment.


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

…iles


Rename $testResultDetail to $params for consistency with other test files

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 4, 2026 10:01
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 3 out of 3 changed files in this pull request and generated no new comments.


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

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.

1 participant