Hi there

This post is quick and you’ll learn how to delete a Teams Application Policy from your Teams deployment.

Log on Teams Admin Portal

Go to https://admin.teams.microsoft.com/policies/app-setup

select the app setup policy you want to delete

if you get access denied with the following content “The policy “Profile3” is currently assigned to one or more users. You must assign a different policy to those users before you can delete this policy.

use this command to retrieve which users have this policy assigned to

Get-CsOnlineUser -Filter {teamsappsetuppolicy -eq "Tag:Profile3"} | Select UserPrincipalName

Output expected

go to Users tab on Teams Admin Portal

search for the user “tgermano@collabcan.com”

click on policies or at the user name

then select Policies on the user , find the App setup policy named “Profile3”

click on “EDIT” at Assigned policies

click on the right menu and find App setup policy

scroll down and pick a different policy (suggestion: default policy) and click apply

go back to Teams App setup policy tab

you will see the message “We assigned the policies. It might take a few minutes for you to see these changes.

select the policy name “Profile3” and hit delete

check the green messa “Item was deleted”. Now the policy is gone.

now the policy has been deleted properly (no error). However, if the policy doesn’t go away git it Teams Admin Portal some time and try again after a few minutes.

I hope that helped you.

Thanks,

Thiago Beier
TwitterLinkedInFacebookRSS