Jeroen Minnaert
Jeroen Minnaert

Reputation: 645

Impersonate a user via Salesforce REST API?

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

Answers (1)

Jeremy Ross
Jeremy Ross

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

Related Questions