Forum Discussion
iammagic
Mar 12, 2022Copper Contributor
How to Assign a "Caller ID Policy" via "group policy assignment" to a security Group
Hi everyone, I have been trying to figure out how to assign a "Caller ID policy" to a security group via group assignment. During the Group Policy assignment it only gives me the option of allow or...
AwsAyad
May 12, 2022Brass Contributor
iammagic Two things to point out here. starting with, your PowerShell CmdLet is incorrect, you need to use the following CmdLet:
Grant-CsCallingLineIdentity -PolicyName "<Custom Caller ID Policy Name>" ....
second thing here, you can only assign certain MS Teams policies to groups and I don't believe the Caller ID policy is one of them, this is currently a Microsoft limitation but as workaround, you can get the group members into a .csv file, name the column that has their email addresses "UserPrincipalName" , do a foreach and grant the policy to each user using the aforementioned CmdLet.
Your expression should look something like below:
Import-Csv C:\Temp\GroupMembers.csv | % {Grant-CsCallingLineIdentity -Identity $_.UserPrincipalName -PolicyName "<Custom Caller ID Policy Name>"}