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

0 votes
Accepted answer

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 Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,148 views 0 8
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