How can I restrict allowed PR reviewers to members of a particular group? Edited

I have a Bitbucket Server (5.5.1) instance bound to my organization's Active Directory instance. We have a pull-request-based workflow. PRs are required to have at least one approval and passing tests before merging. However, we employ both FTEs and interns, and we want only FTEs to be able to approve PRs. FTEs are members of the "unix-staff" group in the AD while interns are members of the "unix-students" group. Is there some way to prevent PRs from being merged until at least one member of the "unix-staff" group has approved it? Or can I do something similar that achieves the same goal, like restricting PR reviewers to members of a particular group?

I do see the "default reviewers" feature, but this doesn't quite meet my goals: it's a handwritten list of users, whereas I want to be able to say "any current members of the unix-staff group", so that I don't need to modify this list every time an FTE joins or leaves my group.

1 answer

1 vote
Mikael Sandberg Community Champion Dec 20, 2017

In order to control it by groups you need an app, Workzone and ScriptRunner allows you to do that.

Thanks, these are both paid plugins though and I am not allowed to authorize funds for Bitbucket :( Ah well I guess I might have to live with a hardcoded list of FTEs.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,745 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you