- Joined
- Sep 7, 2018
- Messages
- 13
- Reaction score
- 4
Hi 3CX Team and Community Member,
I'm experiencing a strange error when I try to run the following PowerShell command when adding a user:
Command:
PS C:\PSS> $users_ids = @("[email protected]")
>> Set-CsUser -Identity [email protected] -OnPremLineURI "tel:+***********;ext=2001" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Error:
Cannot modify the parameter: "OnPremLineURI" because it is restricted for the user service plan: MCOPSTN1,MCOMEETADD,MCOEV,MCOProfessional.
+ CategoryInfo : PermissionDenied: (Set-CsUser:String) [Set-CsUser], UnauthorizedAccessException
+ FullyQualifiedErrorId : UnAuthorized,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet
+ PSComputerName : api.interfaces.records.teams.microsoft.com
I have checked the licenses, we have Microsoft 365 E3 and 365 Business Voice licenses assigned to this user, any assistance will be greatly appreciated!
Kind regards,
Francois
I'm experiencing a strange error when I try to run the following PowerShell command when adding a user:
Command:
PS C:\PSS> $users_ids = @("[email protected]")
>> Set-CsUser -Identity [email protected] -OnPremLineURI "tel:+***********;ext=2001" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Error:
Cannot modify the parameter: "OnPremLineURI" because it is restricted for the user service plan: MCOPSTN1,MCOMEETADD,MCOEV,MCOProfessional.
+ CategoryInfo : PermissionDenied: (Set-CsUser:String) [Set-CsUser], UnauthorizedAccessException
+ FullyQualifiedErrorId : UnAuthorized,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet
+ PSComputerName : api.interfaces.records.teams.microsoft.com
I have checked the licenses, we have Microsoft 365 E3 and 365 Business Voice licenses assigned to this user, any assistance will be greatly appreciated!
Kind regards,
Francois