Issue Title: Unable to Add User to SharePoint Group Using PnP PowerShell 7.4 with Client ID and Certificate
Description: I am experiencing an issue when trying to add a user to a SharePoint Online group using PnP PowerShell 7.4. The command fails to execute as expected. Below are the details of the environment and the steps I have taken.
Verbose Output -
VERBOSE: Making call to SharePoint Online using the Client Side Object Model (CSOM)
VERBOSE: Evaluating application permissions in access token for audience SharePoint Online
VERBOSE: Access token contains the following 4 application permission scopes for resource SharePoint Online: User.ReadWrite.All, Sites.Selected, Sites.Manage.All, Sites.FullControl.All
Issue Title: Unable to Add User to SharePoint Group Using PnP PowerShell 7.4 with Client ID and Certificate Description: I am experiencing an issue when trying to add a user to a SharePoint Online group using PnP PowerShell 7.4. The command fails to execute as expected. Below are the details of the environment and the steps I have taken.
Environment: PnP PowerShell Version: 7.4
Authentication Method: Client ID and Certificate Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite" -ClientId "your-client-id" -CertificatePath "path-to-certificate" -Tenant "yourtenant.onmicrosoft.com" $MembersGroup = "Test" Add-PnPGroupMember -LoginName "Test.requestor1@abceeetest.onmicrosoft.com" -Group $MembersGroup -Verbose
Verbose Output - VERBOSE: Making call to SharePoint Online using the Client Side Object Model (CSOM) VERBOSE: Evaluating application permissions in access token for audience SharePoint Online VERBOSE: Access token contains the following 4 application permission scopes for resource SharePoint Online: User.ReadWrite.All, Sites.Selected, Sites.Manage.All, Sites.FullControl.All