If you have access to the backend of a Jira deployment you can query the database directly with SQL, but what if you are an end user?
I have been working on a open source project named Steampipe that uses Postgres Foreign Data Wrappers (FDW) to query cloud APIs via CLI or any Postgres client.
Our open source community just released a plugin for Jira: https://hub.steampipe.io/plugins/turbot/jira You run it from your local desktop and configure it with your API credentials so it only has access to data visible to those creds. Here is an example query:
select
display_name,
account_type as type,
active as status,
account_id
from
jira_user;
+-------------------------------+-----------+--------+-----------------------------+
| display_name | type | status | account_id |
+-------------------------------+-----------+--------+-----------------------------+
| Confluence Analytics (System) | app | true | 557058:cbc04d7be567aa5332c6 |
| John Smyth | atlassian | true | 1f2e1d34e0e56a001ea44fc1 |
+-------------------------------+-----------+--------+-----------------------------+
Hope others find it useful!