Forums

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

Jira REST API getting Users

Ammar Saqib
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!
August 12, 2022

I am using the specific API to get all active users:


https://api.atlassian.com/ex/jira/${cloud_id}/rest/api/3/users?includeInactive=false

But it gave me app users, jira users and other inactive users, that are on my account. Could you help out how can i get only active users with maximum results.

1 answer

0 votes
carlosughini
Community Champion
August 12, 2022

Hi Ammar,

Welcome to the community!

To get only active users you need to add a parameter to the request to set it to not gather inactive users. You can use the parameter below:

data = { 'username': '.', 'includeInactive':'false'}

If you access the Get users method in the Atlassian API documentation below you will be able to check about the includeInactive parameter:

Please give it a try and let me know how it goes.

Kind regards,

Carlos

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events