Hey guys,
I am trying to get the list of groups an user is member of but for some reason it isn't expanding.
curl -u user:userpassword http://jira.url/rest/api/2/user?username=testuser&expand=groups
This is the answer I'm receiving:
[...]
"groups":{"size":14,"items":[]},
"applicationRoles":{"size":1,"items":[]},
"expand":"groups,applicationRoles"}
I just realized that for some reason my server is requiring the URL to be under quotation marks. Now it's working.
curl -u user:userpassword "http://jira.url/rest/api/2/user?username=testuser&expand=groups"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.