Skip to content

Add Get-PnPMultiGeoExperience cmdlet#5372

Merged
gautamdsheth merged 3 commits into
devfrom
gautamdsheth-plan-spo-multigeo
Jun 28, 2026
Merged

Add Get-PnPMultiGeoExperience cmdlet#5372
gautamdsheth merged 3 commits into
devfrom
gautamdsheth-plan-spo-multigeo

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

Before creating a pull request, make sure that you have read the contribution file located at

https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Adds Get-PnPMultiGeoExperience so PnP PowerShell can retrieve the SharePoint Online multi-geo experience mode without requiring the SPO Management Shell cmdlet.

The implementation reuses the existing multi-geo REST client and calls the same GeoExperience endpoint with the existing API version negotiation used by Set-PnPMultiGeoExperience. It adds the matching response model and MultiGeoExperienceMode enum shape, plus cmdlet documentation, a related link from Set-PnPMultiGeoExperience, and a changelog entry.

Guidance

N/A

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 28, 2026 19:52

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 a new admin cmdlet to retrieve the tenant’s SharePoint Online multi-geo experience mode via the existing Multi-Geo REST client, along with the supporting model/enum and documentation updates.

Changes:

  • Added Get-PnPMultiGeoExperience cmdlet returning the current geo’s multi-geo experience mode.
  • Extended MultiGeoRestApiClient with a GeoExperience GET call and introduced response types (MultiGeoExperience, MultiGeoExperienceMode).
  • Added cmdlet documentation, updated related links, and added a changelog entry.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Commands/Utilities/MultiGeo/MultiGeoRestApiClient.cs Adds a GetGeoExperience() method to retrieve experience mode via the Multi-Geo REST endpoint with API version negotiation.
src/Commands/Model/MultiGeoExperience.cs Introduces the response model returned by the new cmdlet.
src/Commands/Enums/MultiGeoExperienceMode.cs Adds enum representing the experience mode values.
src/Commands/Admin/GetMultiGeoExperience.cs Implements Get-PnPMultiGeoExperience cmdlet.
documentation/Set-PnPMultiGeoExperience.md Links to the new getter cmdlet in Related Links.
documentation/Get-PnPMultiGeoExperience.md Adds documentation for the new cmdlet.
CHANGELOG.md Adds an entry advertising the new cmdlet.

Comment thread CHANGELOG.md Outdated
## [Current nightly]

### Added
- Added `Get-PnPMultiGeoExperience` cmdlet to retrieve the SharePoint Online multi-geo experience mode.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated the changelog entry with the PR link.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gautamdsheth gautamdsheth merged commit fa29b86 into dev Jun 28, 2026
5 checks passed
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