Is there a way to list all users via REST API - Including the deactivated users?

Roy Chapman October 12, 2014

A simple call such as

/usr/bin/curl -k -s -u admin:xxxxxx 'https://url/rest/api/2/user/search?username=a

Will return all users strating with the letter "a", but it doesn't inlcude those already deactivated.  is there a way that this can include the deactivated users?

2 answers

1 accepted

0 votes
Answer accepted
Geert Graat
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.
October 12, 2014

Hi,

To include deactivated users, you can use the boolean includeInactive=true.

However, you cannot list all users, see https://jira.atlassian.com/browse/JRA-29069. The comments include some workarounds.

Regards,

Geert

0 votes
Roy Chapman October 13, 2014

Perfect, thanks

Suggest an answer

Log in or Sign up to answer