Skip to content

Commit 1f67d4a

Browse files
Add warning to Get-PnPSearchCrawlLog with application permissions (#4391)
Add warning to Get-PnPSearchCrawlLog with application permissions as it supports only delegated permissions. Co-authored-by: Gautam Sheth <[email protected]>
1 parent 32c4237 commit 1f67d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/Search/GetSearchCrawlLog.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Web;
66
using Microsoft.SharePoint.Client;
77
using Microsoft.SharePoint.Client.Search.Administration;
8-
8+
using PnP.PowerShell.Commands.Attributes;
99
using PnP.PowerShell.Commands.Base;
1010

1111
namespace PnP.PowerShell.Commands.Search
@@ -36,6 +36,7 @@ public class CrawlEntry
3636
}
3737

3838
[Cmdlet(VerbsCommon.Get, "PnPSearchCrawlLog", DefaultParameterSetName = "Xml")]
39+
[ApiNotAvailableUnderApplicationPermissions]
3940
public class GetSearchCrawlLog : PnPWebCmdlet
4041
{
4142
[Parameter(Mandatory = false)]

0 commit comments

Comments
 (0)