Skip to content

Commit 0d3657a

Browse files
gautamdshethGautam Sheth
andauthored
Update documentation and fix permission attribute in GrantPnPAzureADAppSitePermission cmdlet (#4937)
Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com>
1 parent 26b689a commit 0d3657a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

documentation/Grant-PnPAzureADAppSitePermission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ title: Grant-PnPAzureADAppSitePermission
1313

1414
**Required Permissions**
1515

16-
* Microsoft Graph API: Sites.FullControl.All
16+
* Microsoft Graph API: Sites.FullControl.All (Delegated)
1717

1818
Adds permissions for a given Azure Active Directory application registration.
1919

src/Commands/Apps/GrantAzureADAppSitePermission.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
using System;
2-
using System.Linq;
3-
using System.Management.Automation;
41
using PnP.PowerShell.Commands.Attributes;
52
using PnP.PowerShell.Commands.Base;
63
using PnP.PowerShell.Commands.Base.PipeBinds;
74
using PnP.PowerShell.Commands.Enums;
85
using PnP.PowerShell.Commands.Model;
96
using PnP.PowerShell.Commands.Utilities;
7+
using System;
8+
using System.Linq;
9+
using System.Management.Automation;
1010

1111
namespace PnP.PowerShell.Commands.Apps
1212
{
1313
[Cmdlet(VerbsSecurity.Grant, "PnPAzureADAppSitePermission")]
14-
[RequiredApiDelegatedOrApplicationPermissions("graph/Sites.FullControl.All")]
14+
[RequiredApiDelegatedPermissions("graph/Sites.FullControl.All")]
1515
[Alias("Grant-PnPEntraIDAppSitePermission")]
1616
[OutputType(typeof(AzureADAppPermissionInternal))]
1717
public class GrantPnPAzureADAppSitePermission : PnPGraphCmdlet

0 commit comments

Comments
 (0)