What's the right value for user, when adding user to role in project, using REST API

Maxence.Vanbesien August 28, 2017

Hello, 

I'm currently building a small script that adds a user to a project's role, and I'm not sure about the user value.

I followed the documentation at https://docs.atlassian.com/jira/REST/cloud/#api/2/project/{projectIdOrKey}/role and in the Add Actors users, I currently provide the user key but the API keeps returning 404 (it works with groups !)

I've validated that the project existed, along with the role in the project (since the GET call returns fine & the POST failed with 404). I feel that I pass the wrong value in the user ({ "user" : ["admin"] })

 Where should be the value & how could I get more info about the encountered error ? (I call the API from Java using Jersey).

Thanks in avance,

Maxence VANBESIEN

0 answers

Suggest an answer

Log in or Sign up to answer