How log out a user without Salesforce user menu

Wondering If we can write any script to log out a user. All we want just have a button (not the navigation menu) that would cause the user log out and redirect to the log in page.

Try a button that redirects the user to: It can be a button in a Page title or a navigation item or you can build your own button in a template

Agreed, a simple “Redirect to URL” action with the following relative URL (so it works regardless of the instance you’re on) should do the trick:


Thanks Raymond and Zach. That was exactly what we needed.