[BUG] list Item fields SharedWithUsers, SharedWithDetails, SharingHintHash are empty when file shared #4884
Unanswered
OlivierWaterloos
asked this question in
General
Replies: 1 comment
-
hey @OlivierWaterloos , the response that is received is not something we can influence. As you mentioned that it is working for some users, it's not an issue with the cmdlet itself but something related to the API behavior. Am moving this to discussion, maybe someone in the community has some idea about it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions