Forum Discussion
adding bulk users into call allow policy
Hi VasilMichev,
Do I need to connect to Skype or teams for this command?
I want to import 240 users into a call policy, is this possible? What would the command be?
Sorry for all the questions! And thanks in advance.
Yes, SfBO PowerShell module is needed. You can simply use a CSV file and pipe it to the cmdlet, or use the method detailed here: https://docs.microsoft.com/en-us/microsoftteams/assign-policies#assign-a-policy-to-a-batch-of-users
- ABill1May 20, 2020Iron Contributor
Hi VasilMichev
I am all good with the command and understand it except this -OperationName "Example 2 batch"
what would this name be?
Sorry for the pretty basic question!
thanks in advance
- VasilMichevMay 20, 2020MVP
It's just a name for the batch, you can name it however you like.
- ABill1May 22, 2020Iron Contributor
Hi VasilMichev ,
So I have connected to teams,
wanted to test one email first so I put this command in (example@test.com not the email I used)
New-CsBatchPolicyAssignmentOperation -Identity mailto:example@test.com -PolicyType “Teams Calling Policies” -PolicyName “Test“
I get this error:
ew-CsBatchPolicyAssignmentOperation : Provided policy type is not valid
At line:1 char:1
Im unsure why all I want to do is add the user into Calling policy and the name of the policy is test.
Please help!