Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I give application access to users using script in JIRA 7.3

srinivasp
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2018

I am trying to create new user with JIRA application access.

UserService.CreateUserRequest createUserRequest = UserService.CreateUserRequest.
withUserDetails(loginUser, <username>, <password>, <email>,
<fullname>);

 How can I get the reference of existing applicationKeys for a user to add the SOFTWARE application key.

applicationKeys.add(ApplicationKeys.SOFTWARE); 

UserService.CreateUserRequest createUserRequest = UserService.CreateUserRequest.

withUserDetails(loginUser, user.getSamAccountName(), null, user.getMail(),

user.getFullName()).withApplicationAccess(applicationKeys);

 

1 answer

1 accepted

0 votes
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2018

Hello Srinivas,

The Application access is governed by a group associated to application access, in a scripted create if you have the the default group membership for new users in jira set to a group with application access then the user should be added to this group on create.

This is done under Admin >> Applications >> Application Access  and Set a defaults for new users with the Set Default button next to a group (Additional Details Here)

Alternatively check out this thread that details how to specify a Group during user creation:

-Earl

Suggest an answer

Log in or Sign up to answer