I’m trying to retrieve all users who have permissions on a specific Azure DevOps project (i.e., the users shown in the project’s Permissions tab).
I understand how to retrieve a list of projects using the Core API in Go (golang):
organizationUrl := "https://dev.azure.com/{Organization}"
However, this only returns projects and does not include any users or permission data.
I’ve also tried querying the project directly by searching this in my browser:
https://dev.azure.com/{organization}/_apis/projects/{projectId}
This returns project metadata but still does not expose users or permissions.
After reviewing the REST API documentation, I can’t find a single endpoint that returns the users associated with a project’s permissions. I’m aware that Azure DevOps permissions are often assigned via groups, but it’s unclear which APIs are required to reproduce the data shown in the Permissions tab.
Question:
Is there a way to use the REST APIs that directly returns all users with permissions on a project?
If not, please tell me which combination of APIs (Graph, Security, etc.) is required to retrieve:
- Project security groups.
- Users within those groups.
I’m specifically looking for a REST-based solution which I can use from Golang.