0

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.

0

1 Answer 1

0

You should be able to use User Entitleements and it has properties associated to the project and the permissions.

https://vsaex.dev.azure.com/{organization}/_apis/userentitlementsummary?api-version=7.2-preview.2

{
  "groupOptions": [
    {
      "group": {
        "groupType": "projectReader"
      }
    }
  ],
  "projectRefs": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Example Project"
    }
  ]
}

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.