Skip to content

Add PreferredDataLocation parameter to Microsoft 365 Group cmdlets and update documentation#5402

Merged
gautamdsheth merged 2 commits into
devfrom
feat/mult-geo-m365group
Jul 18, 2026
Merged

Add PreferredDataLocation parameter to Microsoft 365 Group cmdlets and update documentation#5402
gautamdsheth merged 2 commits into
devfrom
feat/mult-geo-m365group

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #5103

What is in this Pull Request ?

Multi geo support for M365 group cmdlets

Copilot AI review requested due to automatic review settings July 18, 2026 13:58

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 Multi-Geo preferred data location support for Microsoft 365 Group cmdlets.

Changes:

  • Adds PreferredDataLocation support to the Set cmdlet.
  • Updates permissions, syntax, parameter guidance, and examples.
  • Documents retrieving the preferred data location.

Reviewed changes

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

File Description
src/Commands/Microsoft365Groups/SetMicrosoft365Group.cs Adds location updates and permission metadata.
documentation/Set-PnPMicrosoft365Group.md Documents setting the location.
documentation/New-PnPMicrosoft365Group.md Documents the existing creation parameter.
documentation/Get-PnPMicrosoft365Group.md Adds a retrieval example.


```powershell
Set-PnPMicrosoft365Group -Identity <Microsoft365GroupPipeBind> [-DisplayName <String>] [-Description <String>] [-Owners <String[]>] [-Members <String[]>] [-IsPrivate] [-LogoPath <String>] [-CreateTeam] [-HideFromAddressLists <Boolean>] [-HideFromOutlookClients <Boolean>] [-RequireSenderAuthenticationEnabled <Boolean>] [-AutoSubscribeNewMembers <Boolean>] [-MailNickname <String>] [-SensitivityLabels <GUID[]>] [-Verbose]
Set-PnPMicrosoft365Group -Identity <Microsoft365GroupPipeBind> [-DisplayName <String>] [-Description <String>] [-Owners <String[]>] [-Members <String[]>] [-IsPrivate] [-LogoPath <String>] [-CreateTeam] [-HideFromAddressLists <Boolean>] [-HideFromOutlookClients <Boolean>] [-RequireSenderAuthenticationEnabled <Boolean>] [-AutoSubscribeNewMembers <Boolean>] [-MailNickname <String>] [-PreferredDataLocation <String>] [-SensitivityLabels <GUID[]>] [-Verbose]
**Required Permissions**

* Microsoft Graph API : One of Directory.ReadWrite.All, Group.Create, Group.ReadWrite.All
* Microsoft Graph API : Directory.ReadWrite.All is required when setting PreferredDataLocation
@gautamdsheth
gautamdsheth merged commit 134b36b into dev Jul 18, 2026
4 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.

[FEATURE] Support for Microsoft 365 Multi-Geo cmdlets

2 participants