Logout some user by script

Hello there!

Can it be possible to logout some user - for ex. ApplicationUser - in script (not current user). I need this for some automatization.

Thanx!

1 answer

0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2021

Bad practice. Dont do it  :)

if you want to write a custom plugin, check out the login manager.

 https://docs.atlassian.com/software/jira/docs/api/7.2.0/com/atlassian/jira/security/login/LoginManager.html

Thanks, but it seems that LoginManager only has method "logout", which performs logout of current user. But I need to logout another user by automation, not that one which automation runs with.

Suggest an answer

Log in or Sign up to answer