Hi everyone,
I'm trying to list only the users with accountType = "app" (e.g., installed apps like Forge or Connect apps) using the Jira Cloud REST API v3 — specifically the /rest/api/3/user/search endpoint.
However, I couldn’t find a way to filter these users directly via query parameters.
Using query=. returns all users, but I have to filter client-side after retrieving all results.
Is there a way to:
Filter by accountType=app server-side?
Or perform this via any property, custom field, or advanced method?
If not supported directly, any workarounds or best practices are welcome.
Thanks in advance!
Jira Cloud REST API v3 does not support server-side filtering by accountType=app via the /rest/api/3/user/search endpoint.
Current Workaround: Client-Side Filtering
You're doing it the correct way:
"user.accountType === 'app'"
Python script:
import requests
JIRA_URL = "https://your-domain.atlassian.net"
API_TOKEN = "your-api-token"
EMAIL = "your-email@example.com"
auth = (EMAIL, API_TOKEN)
headers = {"Accept": "application/json"}
app_users = []
start_at = 0
max_results = 100
while True:
url = f"{JIRA_URL}/rest/api/3/user/search?query=.&startAt={start_at}&maxResults={max_results}"
response = requests.get(url, headers=headers, auth=auth)
response.raise_for_status()
users = response.json()
app_users.extend([u for u in users if u.get("accountType") == "app"])
if len(users) < max_results:
break
start_at += max_results
print(f"Found {len(app_users)} app users:")
for user in app_users:
print(f"- {user['displayName']} ({user['accountId']})")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.