Where can I find the applicable scopeIds for List RoleDefinitions in the Azure DevOps REST API?

JamesWatson-0269 25 Reputation points
2025-04-17T20:43:02.07+00:00

The API documentation for List RoleDefinitions states that the URI for the call is as follows:

https://dev.azure.com/{organization}/_apis/securityroles/scopes/{scopeId}/roledefinitions?api-version={version}

The documentation states that scopeId is required but gives no other information about it. Literally: the description is blank. Is there some other API call or resource for getting the list of scopes that can be used with this?

I've tried using project UUIDs, namespace Ids, Ids for built-in roles. All respond with an error: "SecurityRoleScope {scope-id-I-used} does not exist"

This API appears to be useless without know what kind of scopeId is relevant and what those Ids are. Where can I find this?

Azure DevOps
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.