Need to fetch the user lists from my sonar cloud organization

Team,
I am trying to fetch all the user lists whcih I have under my Sonar Cloud Organization and for that I was trying to run the following script, whcih gives the no. of users but that users are not the part of my sonar cloud organization. Here is my scripts : curl.exe -u PAT: -X GET “https://sonarcloud.io/api/users/search” -o userlists.json . I am owner of my organization. I am able to find my project lists but not for my UserLists.

Any suggestion/advice here ?

Hey there.

You can use the (internal) GET api/organizations/search_members – it’s not publicly documented, so this guide should help you: