IncludeAllGroups Parameter (Connect-MSTeams Cmdlet)
Specifies whether the provider returns all Microsoft 365 Groups in your organization or only those the authenticated user is a member of.
Syntax
Connect-MSTeams -IncludeAllGroups SwitchParameter
Data Type
bool
Default Value
false
Remarks
This property determines whether the cmdlet lists all Microsoft 365 Groups in your organization or only the groups the authenticated user belongs to.
If set to true, the cmdlet includes all groups in the result.
If set to false, only groups associated with the logged-in user are returned.
Use this property when your integration or reporting workflow requires access to all groups across your Microsoft 365 tenant.
This is a required parameter.