function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shyamala ls 7shyamala ls 7 

customer users are not able to see LinkedEntity.Name field values from ContentDocumentLink Object

Hi,

I am querying on ContentDocumentLink to retrieve all the files which are uploaded to the CollaborationGroups by passing GroupId as a LinkedEntityId in the below query.
Query:
[SELECT ContentDocumentId,Id,IsDeleted,LinkedEntityId,LinkedEntity.name,ContentDocument.FileExtension,ShareType,SystemModstamp,Visibility,ContentDocument.title,ContentDocument.Description,ContentDocument.LatestPublishedVersionId FROM ContentDocumentLink where LinkedEntityId IN : gIds ]

I am passing this list to Lightning Component , there am showing LinkedEntity.name,ContentDocument.FileExtension and ContentDocument.title .In my case Admin users are  able to see all three field values but not Customer Profile users.
Please anyone have any idea on this?

Thanks,
Shyamala
Rafael.Martins.SantosRafael.Martins.Santos
Hi Shyamala,

Try check if these fields are enable for the users.
Go to Profile > Select the profile of these users > Object Configuration > Select the ContentDocumentLink object.
See here if the fields that you want, are enabled.

Best Regards
Rafael