How to deactivate jira users from groups using java?

Nageswarara Rao January 5, 2013

Hi,

i want to deactivate the jira users through programatically , can any body help which methods support this process in jira

2 answers

0 votes
Sreenivasaraju P
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.
January 6, 2013

Depends on version of Jira ,you are using.

This is one option, where you remove from jira-users group.

userUtil.removeUserFromGroup(group, user);

0 votes
Renjith Pillai
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.
January 5, 2013

None I can think of other than doing a direct HTTP post to http://yourservername/secure/admin/user/EditUser.jspa. Check out and actual request to make the form data to the passed.

EDIT: Ignore the above answer if your question was about doing it within a JIRA plugin.

Nageswarara Rao January 6, 2013

yes i want to do deactivation with in a jira plugin , how to do this?

Suggest an answer

Log in or Sign up to answer