File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed
PowerPlatform/PowerAutomate Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 4
4
using System . Text ;
5
5
using System . Xml . Linq ;
6
6
using Microsoft . SharePoint . Client ;
7
-
7
+ using PnP . PowerShell . Commands . Attributes ;
8
8
using PnP . PowerShell . Commands . Base . PipeBinds ;
9
9
10
10
namespace PnP . PowerShell . Commands . Lists
11
11
{
12
12
[ Cmdlet ( VerbsCommon . Get , "PnPListItem" , DefaultParameterSetName = ParameterSet_ALLITEMS ) ]
13
13
[ OutputType ( typeof ( ListItem ) ) ]
14
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Selected" ) ]
15
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Read.All" ) ]
16
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.ReadWrite.All" ) ]
17
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Manage.All" ) ]
18
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.FullControl.All" ) ]
19
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Read" ) ]
20
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Write" ) ]
21
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Manage" ) ]
22
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.FullControl" ) ]
23
+
14
24
public class GetListItem : PnPWebRetrievalsCmdlet < ListItem >
15
25
{
16
26
private const string ParameterSet_BYID = "By Id" ;
Original file line number Diff line number Diff line change 4
4
using System . Linq ;
5
5
using System . Management . Automation ;
6
6
using PnP . PowerShell . Commands . Utilities ;
7
+ using PnP . PowerShell . Commands . Attributes ;
7
8
8
9
namespace PnP . PowerShell . Commands . PowerPlatform . PowerAutomate
9
10
{
10
11
[ Cmdlet ( VerbsCommon . Get , "PnPDeletedFlow" , DefaultParameterSetName = ParameterSet_ALL ) ]
12
+ [ RequiredApiDelegatedPermissions ( "azure/user_impersonation" ) ]
11
13
public class GetDeletedFlow : PnPAzureManagementApiCmdlet
12
14
{
13
15
private const string ParameterSet_ALL = "All" ;
Original file line number Diff line number Diff line change 1
- using PnP . PowerShell . Commands . Base ;
1
+ using PnP . PowerShell . Commands . Attributes ;
2
+ using PnP . PowerShell . Commands . Base ;
2
3
using PnP . PowerShell . Commands . Base . PipeBinds ;
3
4
using PnP . PowerShell . Commands . Utilities . REST ;
4
5
using System ;
@@ -10,6 +11,8 @@ namespace PnP.PowerShell.Commands.Purview
10
11
[ Cmdlet ( VerbsCommon . Get , "PnPAvailableSensitivityLabel" ) ]
11
12
[ OutputType ( typeof ( IEnumerable < Model . Graph . Purview . InformationProtectionLabel > ) ) ]
12
13
[ OutputType ( typeof ( Model . Graph . Purview . InformationProtectionLabel ) ) ]
14
+ [ RequiredApiApplicationPermissions ( "graph/InformationProtectionPolicy.ReadAll" ) ]
15
+ [ RequiredApiDelegatedPermissions ( "graph/InformationProtectionPolicy.Read" ) ]
13
16
public class GetAvailableSensitivityLabel : PnPGraphCmdlet
14
17
{
15
18
[ Parameter ( Mandatory = false ) ]
Original file line number Diff line number Diff line change 1
1
using Microsoft . SharePoint . Client ;
2
-
2
+ using PnP . PowerShell . Commands . Attributes ;
3
3
using System ;
4
4
using System . Linq . Expressions ;
5
5
using System . Management . Automation ;
@@ -8,6 +8,15 @@ namespace PnP.PowerShell.Commands.Site
8
8
{
9
9
[ Cmdlet ( VerbsCommon . Get , "PnPSite" ) ]
10
10
[ OutputType ( typeof ( Microsoft . SharePoint . Client . Site ) ) ]
11
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Selected" ) ]
12
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Read.All" ) ]
13
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.ReadWrite.All" ) ]
14
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.Manage.All" ) ]
15
+ [ RequiredApiApplicationPermissions ( "sharepoint/Sites.FullControl.All" ) ]
16
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Read" ) ]
17
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Write" ) ]
18
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.Manage" ) ]
19
+ [ RequiredApiDelegatedPermissions ( "sharepoint/AllSites.FullControl" ) ]
11
20
public class GetSite : PnPRetrievalsCmdlet < Microsoft . SharePoint . Client . Site >
12
21
{
13
22
protected override void ExecuteCmdlet ( )
You can’t perform that action at this time.
0 commit comments