Prevent project-level Bitbucket Admins from changing the project key

Roy Powell January 10, 2022

I have a scenario where some users in Bitbucket have Admin access for their respective project (they aren't "Bitbucket Admins", they just have the admin access for that project provided via the Project permissions). I want to be able to prevent these users from editing their Project Key, while retaining their other admin privileges.

Is there a way to hide / disable the project key editing for these users? I have tried through scriptrunner but could not find a way to hide this specific UI element.

1 answer

1 accepted

2 votes
Answer accepted

Hi @Roy Powell 

Maybe hiding the project key field is not the only way. I believe you can achieve this with an event listener that would cancel the edit action. We are working on an answer for this and will get back to you soon

Regards

Yannis

Hi @Roy Powell 

We have released a new script that you can use here :

https://library.adaptavist.com/entity/prevent-project-administrators-from-changing-the-project-key.

Using this script, the 'Project Key' field will not be hidden, but when a project admin tries to change it, their request will be cancelled with an error message.

Screenshot 2022-02-14 at 15.45.07.pngYou can also modify the script to block them from changing other project properties, like name, description, public etc

Hope this helps!

Regards,

Yannis

Like # people like this
Roy Powell February 14, 2022

@Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__  this is fantastic and exactly what I was looking for, thanks so much for going to these lengths to help me out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events