Getting ScopeId from Azure DevOps RoleDefinitions API

Copper Contributor


I am looking at calling this Azure DevOps API:

Roledefinitions - List - REST API (Azure DevOps Security Roles) | Microsoft Learn 

to get a list of security roles definitions. 


From the Microsoft article, there is not much information on how to get the ScopeId when calling the RoleDefinition API.


Anyone can share some information on getting the ScopeId param? How do we determine the ScopeId to use?



1 Reply

@jagen77 I'm actually sitting right on the same problem. Got any Updates/Informations on this Topic?

I'm trying to get the Informations via a Powershell script which should give out a list with all securityroles roledefinitions for each project.