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 …