Skip to content

Commit 9fc2fd6

Browse files
Added required permission for Get-PnPSiteVersionPolicy and Set-PnPSiteVersionPolicy
1 parent c25509e commit 9fc2fd6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Commands/Site/GetSiteVersionPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
using System.Linq.Expressions;
55
using System.Management.Automation;
66
using PnP.PowerShell.Commands.Model.SharePoint;
7+
using PnP.PowerShell.Commands.Attributes;
78

89
namespace PnP.PowerShell.Commands.Site
910
{
1011
[Cmdlet(VerbsCommon.Get, "PnPSiteVersionPolicy")]
12+
[RequiredApiDelegatedOrApplicationPermissions("sharepoint/AllSites.FullControl")]
1113
[OutputType(typeof(PnP.PowerShell.Commands.Model.SharePoint.SiteVersionPolicy))]
1214
public class GetSiteVersionPolicy : PnPSharePointCmdlet
1315
{

src/Commands/Site/SetSiteVersionPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
using System.Linq.Expressions;
55
using System.Management.Automation;
66
using PnP.PowerShell.Commands.Model.SharePoint;
7+
using PnP.PowerShell.Commands.Attributes;
78

89
namespace PnP.PowerShell.Commands.Site
910
{
1011
[Cmdlet(VerbsCommon.Set, "PnPSiteVersionPolicy")]
12+
[RequiredApiDelegatedOrApplicationPermissions("sharepoint/AllSites.FullControl")]
1113
[OutputType(typeof(void))]
1214
public class SetSiteVersionPolicy : PnPSharePointCmdlet
1315
{

0 commit comments

Comments
 (0)