Assign Microsoft Teams Setup Policies PowerShell

In this blog post, you will learn how to assign a Microsoft Teams user a setup policy using PowerShell.

Setup Policies

Microsoft Teams setup policies control which apps will show up and pinned to Microsoft Teams app left menu.

Connect to Skype for Business Online

To assign set up policies using PowerShell, we need to use the Skype for Business Online PowerShell module.

I will use the following cmdlets to connect.

Import-Module SkypeOnlineConnector
$sfboSession = New-CsOnlineSession -Credential $credential
Import-PSSession $sfboSession

Assign Setup Policy

To assign a policy to use, I will use the following cmdlet.

Grant-CsTeamsAppSetupPolicy -PolicyName "SETUP POLICY NAME" -Identity UPN

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.