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,361,817
Community Members
 
Community Events
168
Community Groups

How to get Inactive user AccountId via Rest API

How to get Inactive user AccountId via Rest API, we have a usecase wherein we check if Jira User exists else create Jira user and create JSM record using Jira User-Account Id.

1 answer

1 vote

You can search the user endpoint API and do filtering of users whose "active" key is false. However, a user being inactive doesn't mean they exist as part of your user list or user base (i.e. if you have Jira Software and Jira Service Management applications). They could have been deleted from your instance and are in a residual state. So depending on either way, when checking by creation, you can get the information you want if they are truly inactive status.

Fetching all users with active key "false" will give thousands of records, finding the exact record from those thousand records will not be a feasible option. Is there any endpoint API which gets Account Id of the employee via email address even if he is Inactive?

If he is deleted, we will create a new one. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events