GroupId Parameter (Connect-Exchange Cmdlet)
Specifies the Microsoft 365 group to target when accessing group-scoped resources using the client credentials flow.
Syntax
Connect-Exchange -GroupId string
Data Type
cstr
Default Value
""
Remarks
Set this property to the identifier of the Microsoft 365 group whose resources you want to access.
The value should be the group’s unique identifier (GUID), as registered in Microsoft Entra ID (Azure AD).
This property is useful for service applications using client credentials to operate on behalf of a specific Microsoft 365 group, especially in scenarios where access is scoped to group-owned content instead of individual user mailboxes.