Is there a declarative way to log a user out of their session using a flow, or is a Visualforce page the only way to go about it?

1 Answer 1


Someone had a similar question where someone wanted to use flow to force a logout: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_logout.htm

Here is the developers guide on a logout call: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_logout.htm

Users can be logged out of a session by using OOB security functionality found in Setup -> Session Settings

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.