1

I would like an API to behave dyanamically based on which Connected App is calling it.

Is there a way to identify from the user session which connected App was used to create the session?

I can then get the API to look up specific configuration for the associated Connected App.

I'm planning on storing configuration in a custom object with a name field matching the Connected App name.

5
  • 1
    waht do you mean by behave differently? May 26, 2020 at 9:28
  • The API runs queries, and I want the predicate to be difference based on the calling user. , or in my logical thinking, the application that is calling the API
    – Skynet5
    May 26, 2020 at 10:33
  • Connected app is for authentication. Use profiles permission sets for authorisation. May 26, 2020 at 10:37
  • Ok, that would work. I could have a dedicated api user with a specifc profile, and link the custom config to that profile. It would mean slightly more configuration. The config isnt really authorisation related, but business logic behaviour based on the calling app. But that would work. Thanks
    – Skynet5
    May 26, 2020 at 12:14
  • Have a look at salesforce.stackexchange.com/questions/298792/…
    – identigral
    May 26, 2020 at 19:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.