Forum Discussion

TheM365Guy's avatar
TheM365Guy
Brass Contributor
Jan 31, 2021
Solved

App Setup Policy - Assign to a group

Hey guys, 

I am confused a little bit - I could not found any solutions to assign a "app setup policy" to a AAD group. I just found under "meeting policies" - the tab "group policy assignment" this is also well documented. Actually I working with a workaround - with powershell and the azure and the teams module. 

 

Is this still in work? Because when I verify a user - I can also see that the policy is then direct attached, but there is also the information "attached from group". But this is not working, or is there any documentation out there for this? 

7 Replies

  • 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 

     

    -PolicyType

    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 

     

     

    • David Phillips's avatar
      David Phillips
      Iron Contributor
      Hopefully TeamsAppPermissionPolicy gets added to that list soon. TeamsAppSetupPolicy is a bit useless without it for those of us who lock down access to apps for one reason or another.
    • TheM365Guy's avatar
      TheM365Guy
      Brass Contributor
      This was my problem! I searched for the "policytype" and I could not found this information 🙂 "TeamsAppSetupPolicy" - thanks to you!!!
      • Martin van der Harst Cloud's avatar
        Martin van der Harst Cloud
        Copper Contributor

        TheM365Guy 

        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 Harst
        Text
        New-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
         

Resources