With SharePoint Online, are there any ways to find if a list/document library has item(s) with unique permissions using PowerShell without iterating through all the items in it.
When a list/library has item(s) with unique permission, the permission page - List(Library) Settings -> Permissions for this list (document library) - shows a message "Some items of this list may have unique permissions which are not controlled from this page."
I am wondering how the page is getting this information - I checked the definition of SPList (https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.list_properties.aspx) but there do not seem to have a relevant property for this.
I have a PowerShell script with CSOM to collect various information associated with lists. If iterating through all the items in a list and check their permission, it would slow the script down considerably especially when a list contains a large number of items.