[RTFACT-20719] Add users to group creation in REST API does not work Created: 26/Nov/19  Updated: 03/Mar/20

Status: Open
Project: Artifactory Binary Repository
Component/s: REST API
Affects Version/s: 6.13.1, 6.15.1
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Scott Mosher Assignee: Ohad Levy
Resolution: Unresolved Votes: 1
Labels: None


We added the userNames section of the security group json.  This does not work for the creation of a group.



1) Artifactory 6.13.1 or latest, create user

2) try running the following API

curl -L -XPUT -uadmin:password -H "Content-type:application/json" http://art.com/artifactory/api/security/groups/test -d '{"name":"test","realm":"internal","userNames":["user"]}'

3) the group will be created but the user will not be added to the group



After performing above steps, then run the same command as a POST.  This will update the group and will include the user.

Generated at Wed Apr 08 09:57:33 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.