Reputation: 645
Is there a way to impersonate a user via the Salesforce REST API so you only get the see the data that he has access to? E.g. You would only retrieve the contacts the impersonated user is allowed to see.
Thanks!
Upvotes: 1
Views: 1524
Reputation: 11600
Salesforce's authorization system automatically enforces visibility to data based on the authenticated user's security profile. So, make sure you authenticate as the user you want to impersonate. There's nothing else you have to do.
Upvotes: 1