Can I view the projects a particular user is associated with

I administer users in Jira. When I have to deactivate a user it would be helpful to be able to see at a glance what projects they have access to. I am new to this role so I'm not sure if it is possible or not.

 

2 answers

2 votes
Daniel Eads Community Champion Jul 11, 2017

Hi Sandra,

There are a couple ways of doing this. From the web interface, the quickest is to find the user in the User browser from Administration and select View Project Roles from the action menu:
image.png

This will give you a matrix of all the projects and what roles the user is associated with.

 

There are of course a couple problems looking at users like this:

  1. If you have a lot of roles and/or projects, that page is pretty beefy.
  2. If a previous administrator didn't do their job well and added users directly to schemes instead of using Roles, you won't see what projects that user is on from this screen (for the direct grants).

So, if you're on Server and have access to SQL, you can take this a step further by directly querying your database for any schemes that user has been added to.

Replace the 'username' (at the end of the query) with the username you're looking to find in the following queries.

Notification scheme adds:

select notif_type, notif_parameter, name from notification
join notificationscheme on notification.scheme = notificationscheme.ID
where lower(notif_parameter) = lower('username')

Permission scheme adds:

select perm_parameter, permission_key, name from schemepermissions
join permissionscheme on schemepermissions.scheme = permissionscheme.id
where lower(perm_parameter) = lower('username')

If you by chance had a predecessor who added groups to notification schemes, you can also expand this even a little further to find where notifications might be coming from based on group membership to notification schemes. Note that there are two places in this query where you'd need to drop in the username.

Notification scheme adds, including notification through group memberships:

select notif_type, notif_parameter, name from notification
join notificationscheme on notification.scheme = notificationscheme.ID
where lower(notif_parameter) in (select lower_parent_name from CWD_membership where lower_child_name = 'username')
or lower(notif_parameter) = lower('username')
order by notif_parameter

Hope that helps!

Hey Sandra,

If you go to Issues > Search for issues, and click Advanced next to the magnifying glass, you can sort issues by a number of criteria (including user).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,233 views 14 19
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
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