Jira scriptrunner- How to filter user who don't have permission to all proejct?

Is there a way I can filter out users who do have access to Jira, but do not have any access to all the project?

1 answer

1 accepted

This widget could not be displayed.

You mean like, in a JQL? 

I don't think you've expressed yourself clearly enough. Can you give me an specific example?

You can compile a list of this through groovy scripting for sure. You can get all the users with the user manager and then use this:

In this particular example it would be CREATION permission, but you can change that to whatever suits you.

changeItems = ComponentAccessor.permissionManager.hasPermission(Permissions.CREATE_ISSUE, issue.project, UserUtils.getUser(currentUser))

 Do say if I can help you further.

Cheers!

DYelamos

I mean I want a list of user who don't have access to all projects in Jira. User have access to Jira, but got never assign any project.

You can use what I gave you avobe. That should work.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

511 views 3 18
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