Forums

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

"Either 'usernames' or 'keys' or 'accountIDs' need to be provided"

Esmerlin Paniagua
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!
June 15, 2022

I am trying this:

const users = await asociateUsers.join("&");

//accountId=5f58d00cdf83ab007d7&accountId=5f58d00cdf83ab007d7


const result = await api
.asApp()
.requestJira(route`/rest/api/3/user/bulk?${users}`, {
headers: {
Accept: "application/json",
},
});

 

Ang get this error:

 

{
"errorMessages": [
"Either 'usernames' or 'keys' or 'accountIDs' need to be provided"
],
"errors": {}
}

 

if I use this  directly route`/rest/api/3/user/bulk?accountId=5f58d00cdf83ab007d7

it works ok

 

1 answer

0 votes
Julien Dephix
Contributor
June 17, 2022 edited

This works for me:

/rest/api/3/user/bulk?accountId=ACCOUNT_ID_1&accountId=ACCOUNT_ID_1

See documentation for more parameters.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events