SSO credentials validity / forced logout

I’m trying to do this via a web link, as I’m not using WordPress. Should I be able to do it with something like this?

https://community.mysite.com/admin/users/100004/log_out

It comes up with a 404 error for me, and the user is not logged out.

If I can get a URL to work I’m hoping to force logout using a curl or file_get_contents command in PHP…