This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[BUG] list Item fields SharedWithUsers, SharedWithDetails, SharingHintHash are empty when file shared #4874
Labels
bug
Something isn't working
Notice
On my One Drive I have shared a pdf file with a Gmail address and a direct colleague (same domaine).
I connect with PNP to my One Drive, get the List Item for that file, but in the FieldValue.SharedWithUsers, SharedWithDetails, SharingHintHash nothing is mentioned.
For some user the fields are filled in, but only with internal e-mail addresses, no external e-mail addresses.
Expected behavior
It should show the internal and external e-mail address
Actual behavior
fields are empty
Steps to reproduce behavior
Connect-PnpOnline -url "https://-my.sharepoint.com/personal/"
$listFiles = get-pnplist | Get-PnPListItem -PageSize 500 | Where-Object {$_.fieldvalues.FileLeafRef -like "filename"}
#
$listFiles.fieldvalues
What is the version of the Cmdlet module you are running?
version 3.1.0 PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: