Forums

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

REST API: Create user with predefined groups?

Kevin DF
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2020

Hello,

According to the documentation additional properties can be given for the create user rest API call. When executing a POST request with the values shown in the code block below it does not seem to respect the groups object however. It creates the user with the default group 'all-customer'

https:///jira.domain.com/rest/api/2/user application.json body:


{
"name": "api.testuser",
"emailAddress": "api.testuser@domain.com",
"displayName": "Api Testuser",
"groups": {
"size": 1,
"items": [
{
"name": "all-custom",
}
]
}
}

Is it possible that I am missing certain properties for the groups object? Or is it not possible to accomplish this in a single API call?

1 answer

0 votes
Yatish Madhav
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.
July 24, 2023

Thanks for the post @Kevin DF  - Have you found useor a workaround for this? Thank you

Suggest an answer

Log in or Sign up to answer