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
Sanjay ChadhaSanjay Chadha 

How to link a User to an Account, Organization or Healthcare Facility?

Salesforce sObject User represents a person who has a login account hence ability to login. In a multi-tenanted solution where different Users login to see objects and information only of their own organization. For example in Salesforce Healthcloud practitioner and patients belonging to a Healthcare Facility.

We have NOT found any field in sObject User or another object which links the user object to an Account, Organization or a Healthcare Facility enabling creation of multi-tenant solution which one server support multiple organization i.e. when users login they only see and can modify information belonging to their own organization.

How do we link a User to an Account, Organization or Healthcare Facility?
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Sanjay

Are these users using Salesforce CRM or Experience Cloud?

If Salesforce CRM then record level access should be controlled through Sharing model of salesforce and Object-field level should be controlled through Profile and Permission Sets.

If Experience Cloud then Sharing sets need to be setup for them. In this case the user is associated to a contact which is in turn connected to an account which will enable you to setup sharing sets.