Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use jira scriptrunner to create a rest endpoint for project admin do user management

As only admin able to manage user group, I am wondering if I can create a rest end point in scriptrunner, which allow project admin to manage user group by using an generic admin ID and password. 


Yes you could.

I imagine that what you want to do is create a list of functions accessed by a login params that project admins could acess so that they could:

1. Add users to groups

2. Remove users to groups

3. Grant permissions. 

and many more. It might be a bit too much work though.

Do give more information if you need anything more specific, this question is a bit thin on that.




I have script as below, 

import com.atlassian.jira.component.ComponentAccessor
def uu = ComponentAccessor.getUserUtil()
def user = uu.getUserByName("boris.georgiev")
def group = uu.getGroupObject("jira-developers")
uu.addUserToGroup(group, user.getDirectoryUser())

but got error, Could you help me take a look? 

Qi, I cannot help you if I don't know what the error is.

Please provide me with the exception that you are getting and I'll look into it.



Is there any way I can create usergroup?

Take a look at this.

You can get that component by:


Hope this helps.





Log in or Sign up to comment

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you