Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I deactivethe jira account using a Java program

朱百万
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2019

from china, apologise for my grammar mistakes. how do i "update cwd_user set active = 0 where user_name = '123' "by programming. i tried 'PUT /rest/api/2/user',it dosen't work. online etc.

1 answer

0 votes
Tom Lister
Community Champion
February 23, 2019

Hi @朱百万 

There is no Rest api method to set a user as inactive

You will need to use SQL in the database or use Groovy to access the Java API.

朱百万
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2019

Thank you reply.but i need a task to update user. i can not shutdown the server and use sql. could you tell me how do i deactive it with the underlying code ..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events