Replies: 4 comments 1 reply
-
How did you authenticate ? If I authenticate with -Interactive to the SPO Admin Center with an app registration with delegated permissions SharePoint AllSites.FullControl , I get the log as soon as I add my account to /_layouts/15/searchadmin/crawllogreadpermission.aspx : |
Beta Was this translation helpful? Give feedback.
-
I authenticated with clientid and secret values via app register. It's connecting to spo fine. I'm able to retrieve a lot of information related file size, modified date, names etc but not this one. Im not sure what could be missing |
Beta Was this translation helpful? Give feedback.
-
Well, if you connect through clientid and secret, then that's Application permissions, not Delegated permissions, and /_layouts/15/searchadmin/crawllogreadpermission.aspx allows to specify only users, so Delegated permissions. It might be that this particular API doesn't support application permissions but only delegated permissions, so with -Interactive or -DeviceLogin with an account. |
Beta Was this translation helpful? Give feedback.
-
Notice
Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Running Get-PnPSearchCrawlLog but throwing error
Get-PnPSearchCrawlLog: Make sure you are granted access to the crawl log via the SharePoint search admin center at https://-admin.sharepoint.com/_layouts/15/searchadmin/crawllogreadpermission.aspx
my account has connection and permissions on crawllog but still facing issues to access crawl logs. What am i missing?
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
see the logs from crawls
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
get-pnpsearchcrawllog
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name "PnP.PowerShell" -ListAvailable
)2.12
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions