Block jira-users group use

It is possible to block or limit the use of jira-users group in the administration project panel?

 

The problem is that if a project administrator add jira-users in the roles of the project, this could result in sending notification to thousands of users.

It will be nice to restrict the use of jira-users only to JIRA administrators.

2 answers

1 vote

That would be a lovely improvement to JIRA, but I'm afraid it's not possible without code change (I've done it in a couple of places, by hacking the .vm that provides the option - specifically I did it for the options of sharing dashboards and subscriptions!)

Could you provide some code examples on how to do that?

I unaccepted your answer because I still have the problem and din't find a way to solve that.

Thanks for the hint.

Mmm, I didn't see your first comment.  But the answer is still correct.  You'll need to find the templates that provide the selection criteria and hack them (I can't provide code because the templates vary between versions of JIRA in both location/name and how they do what they do)

I'm lost searching which velocity or java class are used to display the project's roles page:

plugins/servlet/project-config/PROJECT-KEY/roles

Ah, I think that one is buried in a "system" plugin - you'd need to expand that, find and edit the vm and then repackage it. 

(I'd expect a proper developer to tell me off for doing it this way, but you can unzip a plugin .jar file, edit text files such as .vms in them and then repackage them with a simple zip.  Some file managers actually let you do that without even unzipping them, they handle that for you)

I disabled the two modules about Group role in the system plugin 'Project Role Actors Plugin', now if someone tries to add a group in the project roles he will receive an error message.

I hope that this will not break something else in Jira...

I had to re-enable those two modules beacause previous permissions given by group-roles were not working anymore.

I still haven't found the code that is used to display the project-actor-role table, anyone can help me?

I'm looking inside atlassian-jira-6.4.13-source folder.

0 vote
Christian Roestel Community Champion Oct 26, 2016

Not that this solves your problem, but we replaced our jira-user group with multiple organizational groups.  these smaller groups limit the impact of adding the groups to the project user roles and mass spamming. 

I agree that it would be awesome to be able to block the use of certain groups.  In my Development's team backlog we have a task to see if we can do this with Script Runner, I will keep you posted if we are successful!

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

38 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot