SOLVED

Teams Direct Routing : Set-csuser not available

%3CLINGO-SUB%20id%3D%22lingo-sub-1656200%22%20slang%3D%22en-US%22%3ETeams%20Direct%20Routing%20%3A%20Set-csuser%20not%20available%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1656200%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20set%20the%20number%20%26amp%3B%20enable%20a%20user%20for%20Enterprise%20voice%2C%20but%20I'm%20getting%20an%20error%20that%26nbsp%3B%3CSTRONG%3Ethe%20term%20'set-csuser'%20is%20not%20recognoized%3C%2FSTRONG%3E.%20I've%20installed%20the%20latest%20version%20of%20the%20SkypeOnline%20Powershell%20module%20%26amp%3B%20also%20the%20Teams%20Powershell%20module%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-powershell-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-powershell-install%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20can't%20enable%20any%20new%20user%20for%20enterprise%20voice%20or%20assign%20them%20numbers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20got%20any%20ideas%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJoni.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1656200%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1656209%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Direct%20Routing%20%3A%20Set-csuser%20not%20available%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1656209%22%20slang%3D%22en-US%22%3EJust%20to%20add%2C%20this%20did%20work%20until%20a%20few%20months%20ago%2C%20it's%20been%20a%20while%20since%20I've%20had%20to%20do%20it%20but%20has%20worked%20previously%20without%20issue.%20It%20does%20seem%20to%20import%20the%20other%20commands%20(ie.%20get-csonlineuser)....%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1656278%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Direct%20Routing%20%3A%20Set-csuser%20not%20available%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1656278%22%20slang%3D%22en-US%22%3EFor%20anyone%20who%20gets%20this%2C%20you%20need%20to%20have%20the%20Skype%20for%20Business%20Administrator%20role%20within%20Azure%20AD%20to%20have%20the%20commands%20brought%20in%2C%20having%20Teams%20Service%20Administrator%20isn't%20enough!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1788262%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Direct%20Routing%20%3A%20Set-csuser%20not%20available%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1788262%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261783%22%20target%3D%22_blank%22%3E%40sp-jmglade%3C%2FA%3E%26nbsp%3BThanks%20for%20this.%26nbsp%3B%20I%20banged%20my%20head%20against%20this%20for%20hours%2C%20and%20even%20the%20Microsoft%20Support%20rep%20didn't%20think%20about%20this.%26nbsp%3B%20It's%20surprising%20that%20they've%20merged%20so%20much%20functionality%20into%20the%20Teams%20admin%20center%2Frole%2C%20but%20haven't%20merged%20some%20of%20the%20PowerShell%20commands%20into%20the%20Teams%20Admin%20role.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

I'm trying to set the number & enable a user for Enterprise voice, but I'm getting an error that the term 'set-csuser' is not recognized. I've installed the latest version of the SkypeOnline Powershell module & also the Teams Powershell module: https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-install

 

Currently I can't enable any new user for enterprise voice or assign them numbers.

 

Has anyone got any ideas?

 

Thanks,

Joni.

4 Replies
Highlighted
Just to add, this did work until a few months ago, it's been a while since I've had to do it but has worked previously without issue. It does seem to import the other commands (ie. get-csonlineuser)....
Highlighted
Best Response confirmed by sp-jmglade (Occasional Contributor)
Solution
For anyone who gets this, you need to have the Skype for Business Administrator role within Azure AD to have the commands brought in, having Teams Service Administrator isn't enough!
Highlighted

@sp-jmglade Thanks for this.  I banged my head against this for hours, and even the Microsoft Support rep didn't think about this.  It's surprising that they've merged so much functionality into the Teams admin center/role, but haven't merged some of the PowerShell commands into the Teams Admin role.

Highlighted

I am using the new stable Teams Powershell as "Global Admin" - but i also do not have the set-csuser.

Back to installing the Skype Online Powershell