-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Reporting an Issue or Missing Feature
Using Grant-PnPAzureADAppSitePermission to grant write access to sites.selected errors out while using 2.1.1 stating it is an invalid request. When doing the exact same command with 1.11 it works (I have a vm with the new version and one with the old).
Expected behavior
A new azureAd app site permission should be created.
Actual behavior
No new AzAD appsite permission is created and a generic invalid request error is returned.
Steps to reproduce behavior
#replaced my actual domain/host/site with contoso
$siteUrl = 'https://contoso.sharepoint.com/sites/contososite'
connect-pnponline -interactive -url $siteUrl -tenant contoso.onmicrosoft.com
Grant-PnPAzureADAppSitePermission -Permissions "Write" -Site $siteUrl -AppId $appId -DisplayName "SitesResourceSpecific"
What is the version of the Cmdlet module you are running?
2.1.1 is the one that is failing. It works for me on 1.11 exact same cmdlets.
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
Which operating system/environment are you running PnP PowerShell on?
- [x ] Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working