Hi All,
I have created the following policy using the syntax below. I assigned this policy to a couple of users, but I am unable to delete it because it is still assigned to some users. How can I remove the users from this policy and delete the policy? Please guide me, as I am encountering an error while trying to delete the policy.
New-CsApplicationAccessPolicy -identity Policy1 -AppIds "clientid"
Grant-CsApplicationAccessPolicy -PolicyName Policy1 -Identity "user-objectid1"
Remove-CsApplicationAccessPolicy "Policy1"
Remove-CsApplicationAccessPolicy : The policy "Policy1" is currently assigned to one or more users or groups. Ensure policy is not assigned before removing.