Forum Discussion
Add empty value on MobilityPolicy
- Aug 11, 2020
Hey aehanno ,
Is this a hybrid environment ? By default in SFB online (atleast thats how i see in my environment) the default policy name is "MobilityEnableOutsideVoice".
You can check the same for a default user using : Get-Csonlineuser | select userprincipalname,mobilitypolicy
So the $NULL attribute as policy name most probably won't work for user homed in SFBOnline. To set a online user back to default you can use:
Grant-CsMobilityPolicy -Identity user@domain.com -PolicyName MobilityEnableOutsideVoice
As far as users showing empty value, check where the users are hosted.
Get-Csonlineuser | select userprincipalname,hostingprovider
If you see SRV: that would mean the user is on-premises and you will have to manage the policy on-premises.
Thanks
Hey aehanno ,
Is this a hybrid environment ? By default in SFB online (atleast thats how i see in my environment) the default policy name is "MobilityEnableOutsideVoice".
You can check the same for a default user using : Get-Csonlineuser | select userprincipalname,mobilitypolicy
So the $NULL attribute as policy name most probably won't work for user homed in SFBOnline. To set a online user back to default you can use:
Grant-CsMobilityPolicy -Identity user@domain.com -PolicyName MobilityEnableOutsideVoice
As far as users showing empty value, check where the users are hosted.
Get-Csonlineuser | select userprincipalname,hostingprovider
If you see SRV: that would mean the user is on-premises and you will have to manage the policy on-premises.
Thanks
- aehannoAug 12, 2020Copper Contributor
helloharveer singh
thanks for the response.
So if I understand, if users are online, they can't have MobilityPolicy's value empty but if there are on-premise the default value is $null?
You right, all users who have mobility policy's value empty are users with hostingprovider's value SRV
But when a user have SRV as hostingprovider and MobilityEnableOutsideVoice as MobilityPolicy when I want put $null for mobilitypolicy I have the same error than before
thanks
- harveer singhAug 12, 2020Iron ContributorIf a user has hosting provider as SRV: you need to manage its mobility policy from on-premises skype for business powershell. The $null attribute should work on-premises and right you will not be able to use $null for a user in sfbonline.
- aehannoAug 12, 2020Copper Contributor
I can't use Grant-CsMobilityPolicy when the user is on prem ?
What I have to use ? I only find this one on the Microsoft Doc
Thanks