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
David Benkoel 3David Benkoel 3 

Performing actions on behalf of another user


I need to implement a "login on behalf" feature.

Let's say 2 user profiles exist: Customer and Customer Care.
A Customer Care user would authenticate as any Customer user, in order to perform actions on behalf of this Customer user.

What seems the most logic to me is that the Customer Care user initiates a, OAuth 2.0 JWT Bearer Flow, by providing the Customer user's email in the JWT payload, which he certainly knows about.

According to you, which approach(es) would be suitable for this kind of use case?

Thank you
VinayVinay (Salesforce Developers) 
Hi David,

You can try using JWT Bearer auth.

Hope this helps...

wixane kreanswixane kreans
MyWawaVisit is the official survey portal of Wawa that will let you participate in sweepstakes drawing for a $25 gift card or a $500 Wawa Gift Card. MyWawaVisit