-
Suggestion
-
Resolution: Unresolved
-
None
Issue Summary
The Jira Find users and groups REST API endpoint - /rest/api/3/groupuserpicker - does not bring inactive users on its results.
- Additionally, it would be interesting to be able to filter that with a "active": true/false property.
We have received some requests for this feature as it would match some use cases raised by partners.
Steps to Reproduce
- Suspend a user account on Jira - let's say, "user1"
- Call the /rest/api/3/groupuserpicker REST API endpoint using a query that should return this user.
- Verify if the inactive user "user1" shows up in the results.
Expected Results
"user1" would be listed in the results with "active": false
... "displayName": "user1", "active": false, ...
Actual Results
"user1" is not listed in the results
Workaround
These two API endpoints can be used to retrieve inactive users - however, they are not allowed to be used by Connect apps:
[AI-1089] Enable /rest/api/3/groupuserpicker to return inactive users
Component/s | Original: XP - Search - Smart User Pickers and Mentions [ 67399 ] | |
Component/s | New: Search - Smart User Pickers [ 75294 ] | |
Key | Original: JRACLOUD-84670 | New: AI-1089 |
Project | Original: Jira Platform Cloud [ 18514 ] | New: Atlassian Intelligence [ 23110 ] |
Description |
Original:
h3. Issue Summary
The Jira Find users and groups REST API endpoint - [/rest/api/3/groupuserpicker|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-group-and-user-picker/#api-rest-api-2-groupuserpicker-get] - does not bring inactive users on its results. We have received some requests for this feature as it would match some use cases raised by partners. h3. Steps to Reproduce # Suspend a user account on Jira - let's say, "user1" # Call the [/rest/api/3/groupuserpicker|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-group-and-user-picker/#api-rest-api-2-groupuserpicker-get] REST API endpoint using a query that should return this user. # Verify if the inactive user "user1" shows up in the results. h3. Expected Results "user1" would be listed in the results with *"active": false* {code:java} ... "displayName": "user1", "active": false, ...{code} h3. Actual Results "user1" is not listed in the results h3. Workaround These two API endpoints can be used to retrieve inactive users - however, they are not allowed to be used by Connect apps: * [*/rest/api/2/users*|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-users-get] * [*/rest/api/2/users/search*|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-users-search-get] |
New:
h3. Issue Summary
The Jira Find users and groups REST API endpoint - [/rest/api/3/groupuserpicker|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-group-and-user-picker/#api-rest-api-2-groupuserpicker-get] - does not bring inactive users on its results. * Additionally, it would be interesting to be able to filter that with a {{"active": true/false}} property. We have received some requests for this feature as it would match some use cases raised by partners. h3. Steps to Reproduce # Suspend a user account on Jira - let's say, "user1" # Call the [/rest/api/3/groupuserpicker|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-group-and-user-picker/#api-rest-api-2-groupuserpicker-get] REST API endpoint using a query that should return this user. # Verify if the inactive user "user1" shows up in the results. h3. Expected Results "user1" would be listed in the results with *"active": false* {code:java} ... "displayName": "user1", "active": false, ...{code} h3. Actual Results "user1" is not listed in the results h3. Workaround These two API endpoints can be used to retrieve inactive users - however, they are not allowed to be used by Connect apps: * [*/rest/api/2/users*|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-users-get] * [*/rest/api/2/users/search*|https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-users-search-get] |