• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About Technipages
Teams: Manage External Access With PowerShell

Teams: Manage External Access With PowerShell

Posted on February 25, 2021 by Madalina Dinita Leave a Comment

The Microsoft Teams Admin Center offers plenty of options for IT admins and team owners to control external access. For example, you can use the admin center to enable guest access or customize specific access settings when it comes to external users.

But many people still prefer to use PowerShell to configure and manage user accounts within their organizations. If you’re new to this whole PowerShell and Teams thing or you’re looking for specific ways to manage external access, this quick guide is for you.

How to Manage External Access in Microsoft Teams Using PowerShell

One of the key differences between external access and guest access in Teams is that guest access offers access permission to individual users. On the other hand, external access gives access permission to all the users from a specific domain.

Keep in mind that, depending on your actions, you may need to wait between one and 24 hours for the changes to propagate across the organization.

Allow or Block Domains

First, you need to install the Microsoft Teams PowerShell module. Simply launch PowerShell with admin rights and run the following command Install-Module -Name PowerShellGet -Force.

install teams powershell module

You can allow users from your organization to communicate with users from a different domain with the help of the Set-CsTenantFederationConfiguration cmdlet. You can use this command to enable or disable federation with other domains and public providers.

On the other hand, if you want to check the current settings, you can run the Get-CsTenantFederationConfiguration cmdlet.

Set-CsTenantFederationConfiguration Powershell command

 

For example, use the cmdlet Set-CsTenantFederationConfiguration -AllowPublicUsers $True to allow communication with public providers.

If you, hypothetically, want to block external users from the microsoft.com domain, use the command below:

$x = New-CsEdgeDomainPattern -Domain “microsoft.com”

Set-CsTenantFederationConfiguration -BlockedDomains @{Replace=$x}

You can read more about the Set-CsTenantFederationConfiguration cmdlet on Microsoft’s support page.

Check External Access Policies

You can always check and review the current external access policies configured for your organization using the Get-CsExternalAccessPolicy cmdlet.

If you want to check specific external policies, you can run this command: Get-CsExternalUserCommunicationPolicy. For instance, if you want to check information about the external file transfer policy, you can run this command: Get-CsExternalUserCommunicationPolicy -Identity BlockExternalP2PFileTransfer.

Create a New External Access Policy

If you need to set up a new external access policy, you can use the New-CsExternalAccessPolicy command. For example, if you want to block users from transferring files to external users, you can run this command: New-CsExternalAccessPolicy -Identity BlockExternalP2PFileTransfer $True.

If you want to learn more about using PowerShell commands to configure Teams, visit Microsoft’s Support page. Additionally, you may also want to check out these cmdlet references that are common for Skype for Business and Microsoft Teams.

Conclusion

To conclude, the Teams Admin Center offers plenty of options to configure and manage external access policies for your organization. However, many users still prefer to use PowerShell to get the job done quicker. Which side are you on: PowerShell or Admin Center? Let us know in the comments below.

You Might Also Like

  • Microsoft Teams: External Access vs Guest Access
    Microsoft Teams: External Access vs Guest Access
  • Microsoft Teams: How to Manage Guest Access
    Microsoft Teams: How to Manage Guest Access
  • Fix "Access to the registry key is denied" Error When Setting Policy For PowerShell Scripts
    Fix "Access to the registry key is denied" Error When…
  • Android 10: How to Access and Manage Your Android Clipboard
    Android 10: How to Access and Manage Your Android Clipboard
  • Fix Teams Chat: We Can't Access Your Content
    Fix Teams Chat: We Can't Access Your Content
  • What Is an External GPU?
    What Is an External GPU?
  • Best External Hard Drives 2021
    Best External Hard Drives 2021
  • Fix: Microsoft Store Not Recognizing External Hard Drive
    Fix: Microsoft Store Not Recognizing External Hard Drive
  • PowerShell: Get Old AD DNS Records
    PowerShell: Get Old AD DNS Records

Filed Under: Software Tagged With: Microsoft Teams

Reader Interactions

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • Windows 11: How to Add Clocks with Different Time Zones
  • Google Assistant: How to Never Miss a Birthday
  • Windows 11: How to Disable Notifications and Ads
  • How to Use Oculus Quest 2 Air Link
  • How to Create an Avatar in the Oculus Quest 2
  • 5 Free and Fun Math Apps for Kids
  • Windows 11: How to Discover What Graphics Card You’re Using
  • How to Change Display Resolution on Windows 10 and 11

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Best External Hard Drives 2021
  • Random Access Memory (RAM)

© Copyright 2022 Technipages · All Rights Reserved · Privacy