SOLVED

Enable or disable access to Teams PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-2316359%22%20slang%3D%22en-US%22%3EEnable%20or%20disable%20access%20to%20Teams%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316359%22%20slang%3D%22en-US%22%3E%3CP%3ELooking%20for%20some%20guidance%20in%20limiting%20Teams%20remote%20PowerShell%20access.%20Is%20there%20a%20way%20to%20do%20this%20similarly%20to%20Exchange%20Online%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fdisable-access-to-exchange-online-powershell%3Fview%3Dexchange-ps%23enable-or-disable-access-to-exchange-online-powershell-for-a-user%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EEnable%20or%20disable%20access%20to%20Exchange%20Online%20PowerShell%20%7C%20Microsoft%20Docs%3C%2FA%3E%26nbsp%3B%3F%3C%2FP%3E%3CP%3EIs%20this%20possible%20using%20Conditional%20Access%20policies%20just%20for%20the%20PowerShell%20modules%20rather%20than%20GUI%2FAPI%20access%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2316359%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2316534%22%20slang%3D%22en-US%22%3ERe%3A%20Enable%20or%20disable%20access%20to%20Teams%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316534%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181356%22%20target%3D%22_blank%22%3E%40Danny%20Grasso%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENo%2C%20but%20Teams%20PowerShell%20is%20only%20available%20to%20certain%20Teams%20admin%20roles%2C%20as%20per%20the%20table%20at%20the%20link%20below.%20ExOL%20PowerShell%20is%20different%20in%20that%20any%20user%20can%20connect%2C%20hence%20the%20override%20ability.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fusing-admin-roles%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUse%20Microsoft%20Teams%20administrator%20roles%20to%20manage%20Teams%20-%20Microsoft%20Teams%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Looking for some guidance in limiting Teams remote PowerShell access. Is there a way to do this similarly to Exchange Online Enable or disable access to Exchange Online PowerShell | Microsoft Docs ?

Is this possible using Conditional Access policies just for the PowerShell modules rather than GUI/API access?

1 Reply
best response confirmed by Danny Grasso (Occasional Contributor)
Solution

@Danny Grasso 

 

No, but Teams PowerShell is only available to certain Teams admin roles, as per the table at the link below. ExOL PowerShell is different in that any user can connect, hence the override ability.

 

Use Microsoft Teams administrator roles to manage Teams - Microsoft Teams | Microsoft Docs