Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer a permission from one group to another?

Dusan Petrovic August 10, 2018

I want to transfer a group permission if organizational groups are renamed or entire teams change departments, it may be necessary to transfer permissions from one group to another over a large area. For this reason, I should have the ability to quickly transfer permissions from one group to another. If anyone know how to do that, feel free to give me solutions

1 answer

0 votes
Moses Thomas
Community Champion
August 10, 2018

@Dusan PetrovicIf  the group name is changes permission  which  you  have given  to  group  in  a project  doesn't change, if members of a group  change project,  then you  just  need to  remove them  from  the group ,  create and new group  and add  user's who  change department  to this group then  give  the permission  base on  group  in  the other  project which  they  are now in .

 

Best!

Dusan Petrovic August 13, 2018

In general I can think of the following cases where groups are used for assigning permissions throughout JIRA:

Project permissions

Project roles

Global permissions

In workflow conditions

In workflow validators

Given that we have quite a lot of permission schemes for our projects, lots of different projects with various role configurations and lots and lots of workflows with different conditions and validators we run into problems. Whenever we need to transfer permissions from one group to another, we would have to manually identify in which permission scheme, which role configuration and which workflow condition the old group was used. Doing this would require clicking through every project and every single transition in every workflow. This would be a strenous manual task and is simply not feasible given the amount of group changes we have.

That’s where my task comes in. While it would be lots of work to click through all of the screens manually, using programming it should be possible to do all of this automatically. There should be a away to programatically determine where a group is used (by scanning through all project permissions and so on). Then, once all permissions for a given group have been found, they should be transferred to a new group.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2018

You will need to do a LOT of coding to find the usage of a group like this.  It's one of the reasons we recommend using roles as much as possible instead of groups - you rarely change those, just add and remove users and groups to the roles.

The workflow changes will be particularly hard - they are stored as xml in the database, so you'll be writing a parser amongst other things.

Dusan Petrovic August 14, 2018

Thank you for your answer. Do you know is there any addon which I can use to solve this or it is only possible by coding?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2018

There are no add-ons that can help, most of us use roles so we don't have this problem.  I'm afraid you're going to need to write your own code.

Dusan Petrovic August 14, 2018

Well, I received this task on my internship and maybe this is job for senior developer :D

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2018

It's not a small project, and a senior would be making the recommendation that your site uses roles instead of groups, which would massively simplify (or even remove the need for) any coding.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events