Jira cloud API - how to get users of authorized site

Hello

I need to retrieve list of users of particular site. I’m using 3LO authorization. All endpoints from documentation returns users from all sites that I have in my organisation.

I managed to do this for confluence - I used the following request

GET /search/user?cql=type=user

I need to do the same for Jira. I appreciate all answers.
Thanks
Mike

@MichailoLiquidus have you tried this endpoint?

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-users-search-get

You may need to filter out all users with accountType of “atlassian” "or “customer”. You can refer to the docs for more info.

yes, I tried, users from org are returned, I cannot filter out users with access to authorized jira site