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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

209 views 1 3
Join discussion

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