3. Access request use cases:
• Jira software access request
• JIRA user access to certain plugins like Structure, R4J, jqltricks etc
4. With the below user directory setting on our jira instance, we let users again jira software license
on their first login.
The jira-users group is the one we have in our Jira’s application access and global permissions.
JIRA software access on first login
6. Run a script to remove users who
didn’t login for last 3 months from the
jira-users group
Or, use this free plugin - https://marketplace.atlassian.com/apps/1219207/manage-inactive-users-for-jira?hosting=server&tab=overview
You are welcome!
7. Just did that..
But the next few days are full of requests
from license revoked users
The LDAP configuration works only once
8. I can’t handle this!
Bring in a self service to solve this
problem
9. Jira software access request – Pre-Requisites?
Must:
• Groovy scripting knowledge
• Scriptrunner plugin
• JIRA service desk application – a starter license is enough (just $10/year for
server installation) as the self service project do not need any agent.
11. Access request to certain plugins
In JIRA systems, some powerful and resource intensive plugin could be restricted to
certain users who are members of a specific group.
E.g.,
• Structure
• Requirements for JIRA
• JQLtricks functions
etc
In many cases, JIRA admins would just process the plugin access to any body who
just asks.
12. The code snippet:
def userUtil = ComponentAccessor.userUtil
def groupManager = ComponentAccessor.getGroupManager()
def group = groupManager.getGroup("jira-structure-users")
userUtil.addUserToGroup(group,theIssue.getReporter());
JSD is just optional here!
We could use the same code in the before slide to add the requestor to these specific groups and grant
them necessary access