Forum Discussion
App Setup Policy - Assign to a group
- Jan 31, 2021
Hi,
I've not tested to assign the App Setup policy with to a group but it should be possible with PowerShell.
New-CsGroupPolicyAssignment (MicrosoftTeamsPowerShell) | Microsoft Docs
ex. New-CsGroupPolicyAssignment -GroupId salesdepartment@contoso.com -PolicyType TeamsAppSetupPolicy -PolicyName AppPolicyName
TheM365Guy Hi, just to add to the above it's also mentioned in the docs.
"Currently, policy assignment to groups using the Microsoft Teams admin center is only available for Teams calling policy, Teams call park policy, Teams policy, Teams live events policy, Teams meeting policy, and Teams messaging policy. For other policy types, use PowerShell."
https://docs.microsoft.com/en-us/microsoftteams/assign-policies#using-the-microsoft-teams-admin-center-2
The type of the policy to be assigned. Possible values:
- CallingLineIdentity
- TeamsAppSetupPolicy
- TeamsCallingPolicy
- TeamsCallParkPolicy
- TeamsChannelsPolicy
- TeamsComplianceRecordingPolicy
- TenantDialPlan
- TeamsEducationAssignmentsAppPolicy
- TeamsMeetingBroadcastPolicy
- TeamsMeetingPolicy
- TeamsMessagingPolicy
- TeamsShiftsPolicy
- TeamsUpdateManagementPolicy
https://docs.microsoft.com/en-us/powershell/module/teams/new-csgrouppolicyassignment?view=teams-ps
- Martin van der Harst CloudMay 25, 2021Copper Contributor
What I did in Powershell was
New-CsGroupPolicyAssignment -GroupId acb3174d-669c-4cc0-9d97-5844f7b9fcb8 -PolicyType TeamsAppSetupPolicy -PolicyName DigipleinMedewerkers
but I get an error and I don't know what to do with that. Do you have an idea?[21-5 11:58] Martin van der HarstTextNew-CsGroupPolicyAssignment : One or more errors.At line:1 char:1+ New-CsGroupPolicyAssignment -GroupId acb3174d-669c-4cc0-9d97-5844f7b9 ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-CsGroupPolicyAssignment_NewExpanded], CmdletInvocationException + FullyQualifiedErrorId : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.NewCsGroupPolicyAssignment_NewExpanded