Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,213
Community Members
 
Community Events
165
Community Groups

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

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

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
Site Admin
TAGS

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