File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
using Microsoft . SharePoint . Client ;
2
-
3
- using System ;
4
- using System . Linq . Expressions ;
5
2
using System . Management . Automation ;
6
3
using PnP . PowerShell . Commands . Model . SharePoint ;
7
4
using PnP . PowerShell . Commands . Attributes ;
8
5
9
6
namespace PnP . PowerShell . Commands . Site
10
7
{
11
8
[ Cmdlet ( VerbsCommon . Get , "PnPSiteVersionPolicy" ) ]
12
- [ RequiredApiDelegatedOrApplicationPermissions ( "sharepoint/AllSites.FullControl" ) ]
13
- [ OutputType ( typeof ( PnP . PowerShell . Commands . Model . SharePoint . SiteVersionPolicy ) ) ]
9
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.FullControl" ) ]
10
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.FullControl.All" ) ]
11
+ [ OutputType ( typeof ( SiteVersionPolicy ) ) ]
14
12
public class GetSiteVersionPolicy : PnPSharePointCmdlet
15
13
{
16
14
protected override void ExecuteCmdlet ( )
Original file line number Diff line number Diff line change 1
1
using Microsoft . SharePoint . Client ;
2
-
3
- using System ;
4
- using System . Linq . Expressions ;
5
2
using System . Management . Automation ;
6
- using PnP . PowerShell . Commands . Model . SharePoint ;
7
3
using PnP . PowerShell . Commands . Attributes ;
8
4
9
5
namespace PnP . PowerShell . Commands . Site
10
6
{
11
7
[ Cmdlet ( VerbsCommon . Set , "PnPSiteVersionPolicy" ) ]
12
- [ RequiredApiDelegatedOrApplicationPermissions ( "sharepoint/AllSites.FullControl" ) ]
8
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.FullControl" ) ]
9
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.FullControl.All" ) ]
13
10
[ OutputType ( typeof ( void ) ) ]
14
11
public class SetSiteVersionPolicy : PnPSharePointCmdlet
15
12
{
You can’t perform that action at this time.
0 commit comments