Hey @Gerrie,
Good news! There’s now a new endpoint that returns this information. You can find it documented here.
You might be wondering: “Where do I get my organization ID?”
You can use the GET /organizations/organizations API endpoint. This is currently a private API, but its documentation will be made public soon.
Here’s how it works:
- Get your organization ID (
uuidV4
):
curl --request GET \
--url 'https://api.sonarcloud.io/organizations/organizations' \
--header 'Authorization: Bearer TOKEN'
Sample response:
[
{
"uuidV4": "dc85ceeb-be67-4861-9853-8a5c27ffccaa",
"key": "colin-sonarsource",
"name": "colin-sonarsource",
// ...more fields
"id": "AZCcITH68jDvuYZ2DRg4"
}
]
Note the uuidV4
: dc85ceeb-be67-4861-9853-8a5c27ffccaa
- Use uuidV4 to query the users in your organization:
curl --request GET \
--url 'https://api.sonarcloud.io/users/users?organizationIDs=dc85ceeb-be67-4861-9853-8a5c27ffccaa' \
--header 'Authorization: Bearer TOKEN'
Sample response:
{
"users": [
{
"id": "f2649c22-60bc-4b55-a377-c166cb70cf23",
"login": "colin-sonarsource@github",
"externalProvider": "github",
"externalLogin": "colin-sonarsource",
"name": "colin-sonarsource",
"email": "colin@sonarsource.com",
"avatar": "8c647d13c2dbfbbf050d9ffccc61134a",
"lastConnectionDate": "2025-06-11T07:13:32.868Z"
}
],
"page": {
"pageIndex": 1,
"pageSize": 50,
"total": 1
}
}
This will return the users in your organization with their e-mails.
Let me know if you have any questions.