Skip to content

Feat: add Test-PnPConnectionPermission cmdlet for API permission validation - #5428

Merged
gautamdsheth merged 2 commits into
devfrom
feat/test-pnpconnectionperm
Aug 2, 2026
Merged

Feat: add Test-PnPConnectionPermission cmdlet for API permission validation#5428
gautamdsheth merged 2 commits into
devfrom
feat/test-pnpconnectionperm

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes NA

What is in this Pull Request ?

Added cmdlet to test permissions

Copilot AI review requested due to automatic review settings August 2, 2026 14:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Test-PnPConnectionPermission to validate current connection token scopes against cmdlet permission metadata.

Changes:

  • Adds permission evaluation and token inspection.
  • Adds cmdlet and article documentation.
  • Updates nightly changelog entries.

Reviewed changes

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

Show a summary per file
File Description
src/Commands/Utilities/ApiPermissionEvaluator.cs Evaluates scope privilege coverage.
src/Commands/Model/AccessTokenPermissionValidationResponse.cs Uses the new evaluator.
src/Commands/Base/TestConnectionPermission.cs Implements the new cmdlet.
pages/articles/determinepermissions.md Documents connection validation.
documentation/Test-PnPConnectionPermission.md Adds cmdlet reference documentation.
CHANGELOG.md Records the feature and validation fix.

Comment thread src/Commands/Base/TestConnectionPermission.cs Outdated
Comment thread CHANGELOG.md Outdated
Comment thread src/Commands/Utilities/ApiPermissionEvaluator.cs
Comment thread CHANGELOG.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 6 out of 6 changed files in this pull request and generated no new comments.

@gautamdsheth
gautamdsheth merged commit ade98c3 into dev Aug 2, 2026
6 checks passed
@gautamdsheth
gautamdsheth deleted the feat/test-pnpconnectionperm branch August 4, 2026 20:11
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.

2 participants