Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to deactivate the user using JIRA SOAP API?

SamJ September 29, 2015

I am trying to deactivate users in JIRA using php script and JIRA SOAP Api.

I googled it for and got deleteUser() method for deleting users but unable to find how to make user inactive instead of deleting the user.

Is there any way to deactivate the user using SOAP api?

Please find the code below which deletes the user:

 

<?php set_time_limit(0); session_start(); $soapClient = new SoapClient("http://jira.abc.com/jira/rpc/soap/jirasoapservice-v2?wsdl"); $token = $soapClient->login('abc', 'abc') or die('Username/Password is not correct!'); $result = $soapClient->deleteUser($token, 'testUser');

 

 

Thanks in advance...

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
September 30, 2015

Use updateUser with the deactivate parameter from JIRA Command Line Interface (CLI).

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2015

The SOAP API was deprecated a long time ago, and all official development on it halted then.  The ability to disable users was added to JIRA after SOAP was deprecated, so I suspect SOAP doesn't have the functions to handle it.

You should really be using REST to interact with JIRA  - SOAP is not just deprecated, but totally removed from JIRA now.

TAGS
AUG Leaders

Atlassian Community Events