Forum Discussion

aehanno's avatar
aehanno
Copper Contributor
Aug 11, 2020
Solved

Add empty value on MobilityPolicy

I try to put empty value for MobilityPolicy for OnlineUser with this method :     Grant-CsMobilityPolicy -PolicyName $Null -Identity 'test'     But I have this error message     This poli...
  • harveer singh's avatar
    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

     

Resources