Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,849
Community Members
 
Community Events
168
Community Groups

Jira REST API getting Users

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 Leader Aug 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
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

4,964 views 18 31
Read article

Atlassian Community Events