Set-CSUser - LineURI - which right is needed by the executor

StephanG 846 Reputation points
2021-07-28T09:57:36.363+00:00

Hi,

i wrote a handy PowerShell that would allow my not so PowerShell experienced colleague to easily manage the phone numbers of our "Teams Voice" Users. As i am looking for "least privilege" i want to give him.
I thought "Teams Communication Admin" would be the role that should fit to this role.
But if he executes the script - he gets an error.
I can execute it without problems (same machine/same settings).

But i am a "global admin" - so no permission issues here.
I could not find a doc about it - so maybe you can help me out here.

I will share the script in the gallery (or how it is named now - as soon as i am sure it will work)

Microsoft 365 and Office | Skype for Business | Windows
Microsoft 365 and Office | Skype for Business | Windows
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,766 Reputation points Microsoft External Staff
    2021-07-29T04:03:44.99+00:00

    @StephanG ,

    Could you share with us the error message of Teams communication administrator?

    It recommends you try to use Set-CsOnlineVoiceUser command to set the PSTN specific parameters, such as telephone numbers and emergency response locations. I tested this command with Teams communication administrator and it works well.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.