Quantcast
Channel: UC Administration Blog
Viewing all articles
Browse latest Browse all 327

How to assign External Access Policy to all user.

$
0
0
Issue: How to assign External Access Policy to all user.

Problem Statement:
Recently I have setup federation between A company to B company, and tested everything work fine however all user don’t external access policy applied. Management want to apply External access policy to all user who has Lync access.
Resolution:
To assign the external access policy to users who has Lync access, you can use Lync Management Shell using below command let as per your requirement.
1.     Log on to Lync server and Open Lync Management Shell.

2.     Type below command as per your need.
Assign the policy to single user how has Lync access:
PS C:\> Grant-CsExternalAccessPolicy -Identity "Balu Ilag" -PolicyName “policy name” 

Assign the policy to all user who has Lync access:
PS C:\> Get-CsUser -Filter {ExternalAccessPolicy -eq $Null} | Grant-CsExternalAccessPolicy -PolicyName "policy name"
Assign the policy to all user who works in locality ‘Denver’, l represent location:
PS C:\> Get-CsUser -LdapFilter "l=Denver" | Grant-CsExternalAccessPolicy -PolicyName “policy name” 

Assign the policy to all user who has job title ‘Sales Representative’ Lync access: 
PS C:\> Get-CsUser -LdapFilter "Title=Sales Representative" | Grant-CsExternalAccessPolicy -PolicyName “Policy name” 

Assign the policy to all user who has Lync access and :
PS C:\> Get-CsUser -OU "ou=US,dc=lmydomain,dc=com" | Grant-CsExternalAccessPolicy -PolicyName “USAccessPolicy” 

In my case I want to assign the policy to all user who Lync access.
It will take some time to apply the policy and later you can verify whether policy is applied properly or not.

Thank you.

Viewing all articles
Browse latest Browse all 327

Trending Articles