Forums

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

JIRA API Set Multiple Project Admins

Jones JayJuan
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!
December 21, 2022

Hello,

I am looking for some help/guidance on getting an API call set up to set more than one project admin for a given project. Currently I am using the code below to set one admin:

${Urls.jira}/rest/api/3/project/${projectKey}/role/${projectRole}

Is there a best practice on getting this logic set up to accept multiple users? 

1 answer

0 votes
Sunny Ape
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.
December 22, 2022

Hello @Jones JayJuan 

That endpoint doesn't accept multiple users. As per the documentation for that endpoint:

user
Array<string>
The user account ID of the user to add.

... one user, singular, per request. To add multiple users you need multiple requests.

Suggest an answer

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

Atlassian Community Events