How to restrict access to a folder in a sharepoint online document library

I have recently created a folder in a sharepoint online document library. This folder will be used to store confidential information. Only specific people should have access to this folder. By default if a folder is created in a sharepoint library, it will inherit its permissions from sharepoint site. Therefore, …

Read more

Connect to Sharepoint Online using Powershell and Azure AD service principal

Connect to Sharepoint Online using Powershell

Our goal is to connect to sharepoint online using an Azure AD service principal from Powershell. You can use this approach to connect to sharepoint online when you are creating an unattended powershell script. Steps given in this blog post will enable you to create a connection to sharepoint online …

Read more

How to Fix error Connect-PnPOnline: The user or administrator has not consented to use the application with ID ‘31359c7f-bd7e-475c-86db-fdb8c937548e

Recently I tried to connect to Sharepoint online using Connect-PnPOnline cmdlet and received below error message. In this blog post, we will see alternative ways to connect using this command which utilized interactive login methods. In below screenshot, you can see the command along with the error message. Error Message …

Read more

How to create Microsoft 365 groups in bulk with sharepoint site and Teams using Powershell

microsoft 365 groups

About the Task This week I received a request to create Microsoft 365 groups in bulk using Powershell. I tried to use New-UnifiedGroup command (part of EXO V2 Powershell Module) to create Microsoft 365 group which worked fine for creation of the group but this command did not create corresponding …

Read more