View email addresses for users within my organization...is it possible

Is it possible to view email addresses for users within my organization on SonarCloud.
I tried viewing details using developer_tools but nothing seems to present email accounts for users within our oranization…

Current problem…
We have users that are no longer part of our company but still has access to the SonarCloud instance of our organization.
In order to ensure we remove the correct users, do we want to have visibility of their email addresses to validate against our database as to whether the user still works for our company or not.

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:

  1. 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

  1. 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.

1 Like

Thanks for the feedback Colin.
The endpoint works perfectly, I just had to add the &pageIndex=1 to extract mulitple pages.
But it does what I require.
Thanks again.

1 Like