How to find the Active users by Role ID using Jira Align's API
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This article describes how to retrieve the active users with specific role ID using API.
Environment
Jira Align
Solution
We use the field 'isLocked' in the user table to determine if the user is active or inactive.
# isLocked=-1 means that the user is deactivated
# isLocked=0 means that the user is activated
Swagger API
1
https://<jiraalign-domain>.jiraalign.com/rest/align/api/2/Users?$filter=roleID eq 3 and isLocked eq 0
Simple API with select command
1
https://<jiraalign-domain>.jiraalign.com/rest/align/api/2/Users?$filter=roleID eq 9 and isLocked eq 0&$select=enterpriseHierarchyId,email,roleId,status,isLocked
Additional details can be found in below articles:
Updated on April 15, 2025
Was this helpful?
Still need help?
The Atlassian Community is here for you.