How to deactivate the user using JIRA SOAP API?

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

This widget could not be displayed.

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.

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 10 hours ago in Canada

TOPIC TUESDAY - August 28th

Hey everyone and happy Tuesday! Today's Topic Tuesday is about our fair city.  With summer winding down, what is your favourite (yes with a u) summer activity to do in The 6?  Mine woul...

15 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you