Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the password for the user? [scriptrunner]

Krzysztof September 14, 2023

 

Hello,

 

This script creates a user:

 

import com.atlassian.jira.application.ApplicationKeys

 

Users.create('jdoe', 'jdoe@example.com', 'Jane Doe') {

    password = 'secret'

    directoryId = 10_001

    withApplicationAccess(ApplicationKeys.SERVICE_DESK, ApplicationKeys.SOFTWARE)

}
Is it possible to prepare a script that will later update this user - for example, how to change the password for the user?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events