How to secure SharePoint sites, Teams and their files against guest access

Allowing or blocking guest access to your teams is a common thing you need to think about when creating a team. Will you let the team’s owner be responsible for this fact or is this something you embed in your organization’s policy?

If we look at the options within Teams, we can generally only enable or disable guest access for the entire environment. But when we throw sensitivity labels into the equation we can:

  • Prevent team owners from adding guests.
  • Prevent items in a team from being shared with guests.

Note: This article applies sensitivity labels to containers (also referred to as container-level labeling), where the container in this case refers to the team and its underlying SharePoint site. Applying a sensitivity label at the container level does NOT assign a sensitivity label to items (files) within the container. This means that individuals can still download a file and distribute it by other means. If you want to prevent this, you can use item-level sensitivity labels.

Let’s take a look at how to configure container-level labeling to prevent guests from being added to a team and prevent items in the team from being shared with people outside your organization.

Prepare your environment for container-level labeling, the Microsoft Graph part.

Microsoft Teams teams are built on Microsoft 365 groups. Your Microsoft 365 Entra ID environment contains various so-called ‘settings objects’ that define how a Microsoft 365 group is configured. By default, these settings objects are not visible, as your environment is configured with default values.

Continue reading “How to secure SharePoint sites, Teams and their files against guest access”

Introduction to the Microsoft Graph (MgGraph) Powershell Module & API

As you might know, Microsoft will stop supporting the MSOnline and AzureAD Powershell Modules for managing Entra Identity and other Microsoft 365 related services in the near future. Where the current end of life date was set to previous month, this has now been postponed to March 30, 2024.

As a successor to the above mentioned modules, the new Microsoft Graph (MgGraph) API and accompanying powershell commandlets are available for download here. I would advise you to install both the v1.0 and the beta version of the SDK. Why will be made clear in this article.

In the remainder of this article, I will explain how to move from using the legacy modules to the Microsoft Graph API and accompanying Powershell Module. For demonstration purposes, we are going to turn off directory synchronization by using the MgGraph Powershell Module and API.

Setting up your environment

Continue reading “Introduction to the Microsoft Graph (MgGraph) Powershell Module & API”