1

Getting the branch policy from Azure DevOps Services return only the policy type but not the "Required reviewers" - looking for Reviewer Name or Team Name . I could not find a call to extract the "Required reviewers" from the selected policy/branch.

looked for policy extraction method could not find .

galsi
  • 421
  • 1
  • 6
  • 19

1 Answers1

0

For REST API checkout the Policy Configurations. The Confguration object in the example on the page shows a settings.requiredReviewerIds property with what seems to be an array of Azure AD Object IDs for the required reviewers.

As an alternative to REST, az cli also has the az repos policy required reviewer command documented here to manage reviewers in branch policies.

Roderick Bant
  • 1,534
  • 1
  • 9
  • 17