Aug 11 2020 09:32 AM - edited Aug 11 2020 09:32 AM
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 policy must be assigned a value compatible with the user's subscription and location. It cannot be $null.
+ CategoryInfo : InvalidOperation : (Grant-CsMobilityPolicy:String) [Grant-CsMobilityPolicy], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.Rtc.Management.Xds.GrantMobilityPolicyCmdlet
+ PSComputerName : admin2e.online.lync.com
I don't know why I have this error because I have user who have this empty value. Some with license and location and some without.
Too I can't add an existing MobilityPolicy to an user who have an empty value.
If someone have an idea, I will be glad to discuss about this.
Thanks you
Aug 11 2020 10:35 AM
SolutionHey @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
Aug 12 2020 12:51 AM - edited Aug 12 2020 01:53 AM
hello@harveer 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
Aug 12 2020 02:33 AM
Aug 12 2020 06:31 AM
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
Aug 12 2020 06:40 AM
Aug 11 2020 10:35 AM
SolutionHey @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