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 Connect-PnPOnline : AADSTS65001: The user or administrator has not consented to use the application with ID ‘31359c7f-bd7e-475c-86db-fdb8c937548e’named ‘PnP Management Shell’. Send an interactive authorization request for this user and resource.Trace ID: c6548a52-81bf-4d6d-bf7e-68bb179b6700Correlation ID: 6f4ad9fb-531a-40cc-ac20-5da83021e3cfTimestamp: 2021-12-21 13:17:34ZAt line:1 char:1Connect-PnPOnline -Url https://techpress-admin.sharepoint.com/~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], MsalUiRequiredExceptionFullyQualifiedErrorId : Microsoft.Identity.Client.MsalUiRequiredException,PnP.PowerShell.Commands.Base.ConnectOnline Other Sharepoint Online related articles on Techpress: How To Add An Azure …

Read more

How to add an Azure AD Security Group to Sharepoint Online Teams site and configure site permissions

Create a Sharepoint Teams Site A Teams site can be created to collaborate with other team members, share documents with each other and to work on a specific project. I recently created few microsoft teams sites on Sharepoint Online and my requirement is to create an Azure Active Directory Security Group and provide Edit permissions to this AD group. You can also provide different permissions like Read, Full Control etc. In this blog post, I will be assigning Edit Permissions to a Azure AD security Group MyTeam_01 on a Sharepoint Online Teams Site TestSite01. Creating a Teams site is super easy. Login on Microsoft 365 admin center using Global Administrator …

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 Sharepoint site. Therefore, I utilized New-PnPMicrosoft365Group command (part of PnP.Powershell powershell module). In this blog post, I have explained in detail on how to use New-PnPMicrosoft365Group command and create Microsoft 365 group(s). First Step is to Install PnP.Powershell Module and authenticate using Connect-PnPOnline to Sharepoint before we can run New-PnPMicrosoft365Group cmdlet. There are many different ways you can authenticate to …

Read more