-1

When sharing a record with a community user manually (thru apex) - the record becomes visible to AllInternalUsers.

Is this intended? How can I circumvent this issue?

1
  • 1
    Please edit your post to include details about the OWD and any sharing rules for internal users, and also the relevant sections of your Apex code. Dec 18, 2023 at 16:40

1 Answer 1

0

Turns out that all community users have as hierarchy all standard users who have access to them.

To opt out of this mechanism you can disable access using hierarchies: https://help.salesforce.com/s/articleView?id=sf.security_controlling_access_using_hierarchies.htm&language=en_US&type=5

Not the answer you're looking for? Browse other questions tagged .