Browse Projects permissions

fiorellasantopietro May 19, 2017

Hi,

I have a particular issue regarding the Browse Projects Permissions: even if I grant permissions just to a restricted group of users, the ones that couldn't see the project can see the project inside the all project list. Ok. He can't see all issues inside the project

Ok, he is not able to see all issues inside the project, but even the fact that the project appears inside the list bother me a bit.

Do you have any idea of how to manage this issue?

 

Thanks in advance!

4 answers

1 vote
Anabell Jorge January 21, 2019

I have the same issue. I have 100 projects under a Permission Scheme, all of the items have only groups for permission. However, the user (that is not assigned to any group yet) can see the list of projects. I don't want this to happen. Users should only see the projects they have access to. Any thoughts?

0 votes
erik_norman October 25, 2020

The problem might be that you have some remaining default permissions, and since it is enough that ANY OF the permission requirements is met, the user will see that list/resource/issue.

Sadly, there is no built-in step-by-step wizard to set up the permission schemes according to your needs, therefore most Jira enthusiasts start with the default settings, create loads of projects and start worrying about security later.

I don't know what you have done so far, but unless you completely clean up all the permission system, you will never really be in control of "who sees what".

Depending on how many users/groups/projects you have, this "tabula rasa" might take some time once, but save you a lot of headache afterwards. In the end, your users will only see issues/resources/projects, because you explicitly allowed them to.

You will need to do this when nobody is working, since Jira will be partially unusable until you finished the configuration. Do a backup first! 

Use two browsers (e.g. I used Chrome as Jira admin, and Firefox as user) to test the permissions while doing this. I use a dummy user whom I temporarily assign to the relevant groups.

Step by step instructions

  1. Remove all users from jira-software-users
  2. Go the default permission scheme and remove all access rights.
  3. Go to System -> Global permissions and remove any non-admin group. Only jira-administrators should be listed for each permission.
  4. Test if your user can login. Expected: he cannot login due to missing access rights. Good! Now we can start building the whole permission system from scratch.
  5. Create users and admin group for a team. E.g. if your team is called bongo: bongo-users, bongo-admins
  6. Add all "bongo team members" to either bongo-users or bongo-admins
  7. Go to Settings -> Applications -> Application access and add bongo-users and bongo-admins
  8. Test if your user can login. Expected: he can login, but he cannot see or create any issues.
  9. Copy the default permission scheme and rename that, e.g. bongo permission scheme
  10. Configure the bongo permission scheme and assign permissions to the bongo-admins and/or bongo-users.
    PRO TIP: Rather than adding any "team leaders" to both admin and user multiple groups, assign any "normal" permission to both bongo-users and bongo-admins, and "admin permissions" only to bongo-admins. Typically, the permission scheme is configured only once, but you will have to manage add/remove admins more often.
  11. For all "bongo projects", go to the project details (Settings -> Projects -> click on project -> Permission -> Actions: use another scheme), and assign the bongo permission scheme.
  12. Test if your user can create and view issues within any "bongo project". Expected: yes.
  13. Repeat this for any other team you have, and test if the users can access (only!) their own projects.

 

Please note: 

  • You will see some error messages and strange behavior, especially in the beginning (e.g. project category undefined in the project details), but that is to be expected. You might want to add your own Jira admin user to those admin and/or user groups to avoid such error messages.
  • This is by no means a complete guide on user/group access control, it is merely one of several possible solutions. It was made under the assumption, that you want to have two completely separated teams, who don't know of each other. Furthermore, this example was made only with two roles: admins and users. If you want to have further roles and/or cross-team visibility, you will need to add further groups and edit the relevant permission schemes, so that people belonging to these groups have enough access rights to see/edit the data. You can also add more flexibility by assigning permissions to project roles, rather than groups directly.
0 votes
Almut Hack June 8, 2020

I have the same issue and in my case the reason was this bug:

https://jira.atlassian.com/browse/JRASERVER-37117

David Kott July 24, 2020

I just found this problem as well.  Thanks for the link to the bug.

Like Almut Hack likes this
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2017

You've given this person the right to view the project.  So he can see the project.  I don't see any problem here.

fiorellasantopietro May 19, 2017

Hi Nic,

thanks for your answer. Unfortunately, even if inside the Browse Projects there isn't the group of the A user, he can see the project on the list of "all project types - all categories".

 I'd like to hide the project even inside this list. Is there any chance to do this?

 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 19, 2017

Browse projects will only list the projects the user can see.

If you want to hide a project, you need to remove the user's browse access to it.  Check the permission scheme for the project and look at who has "browse".  You need to make the user *not* match any of the rules in there.

fiorellasantopietro May 19, 2017

Hi Nic,

I did it. I set in this way the "browse project permissions", and my user A is not in any of this case.

I tried to re-index all the project but notthing happened.

Do you have any idea?

 

Thanks in advance,

Fiorellaimage.png

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 20, 2017

Your user *must* be matching one of the rules that allows browse rights.

I'd re-check all the role memberships of course, but I suspect that they either have "create issue" rights, which would allow them to become a reporter, or they are selectable from the custom field you have in the scheme which would also give them the right to see an issue in that project.

fiorellasantopietro May 22, 2017

Hi Nic,

as you suggested, I noticed that there was an "assignable" rule associated with all users in Jira (it was the only one). I changed it and re-indexed all project, but, unfortunately, it still not work...

 

fiorellasantopietro May 22, 2017

image.png

Martin Hynek August 29, 2018

Hello, it seems i have same problem.... User is not in project users as user or as a group member, project permissions and still can see project itself. It seems that its visible only on project list screen.

Martin Hynek August 29, 2018

@fiorellasantopietro which version are you using?

fiorellasantopietro August 29, 2018

Hi @Martin Hynek,

we use Jira Cloud.

thanks,

Fiorella

Martin Hynek August 29, 2018

@fiorellasantopietro do you use it now or that problem you wrote about is from server version you used before?

fiorellasantopietro August 29, 2018

Well at the end I used the group security issue and user security issue, in order to allow just a group or a user to see and collaborate to a specific issue.

This is the only way, at the moment, for me..

But at the end they can see all the list of projects that I have in my pocket :(

Hope this is useful,

Fiorella

Like Anabell Jorge likes this
lpetri-orion October 3, 2019

I too have the same issue. There should be an easy way to show only the projects a given user is related to in the project browse screen "secure/BrowseProjects.jspa".

There are many cases which users shouldn't know a given project exist.

Matt Smith May 1, 2020

I agree - aspecially when the projects are customer sensitive or activity sensitive.

Suggest an answer

Log in or Sign up to answer