Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OlivierWaterloos opened this issue Apr 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@OlivierWaterloos
Copy link

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?

  • [x ] Windows
@OlivierWaterloos OlivierWaterloos added the bug Something isn't working label Apr 24, 2025
@OlivierWaterloos OlivierWaterloos changed the title [BUG] [BUG] haredWithUsers, SharedWithDetails, SharingHintHash are empty Apr 24, 2025
@OlivierWaterloos OlivierWaterloos changed the title [BUG] haredWithUsers, SharedWithDetails, SharingHintHash are empty [BUG] list Item fields SharedWithUsers, SharedWithDetails, SharingHintHash are empty when file shared Apr 24, 2025
@gautamdsheth
Copy link
Collaborator

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.

@pnp pnp locked and limited conversation to collaborators Apr 29, 2025
@gautamdsheth gautamdsheth converted this issue into discussion #4884 Apr 29, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants