Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20719

Add users to group creation in REST API does not work

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.13.1, 6.15.1
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None

      Description

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

       

      REPRODUCE

      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

       

      WORKAROUND

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              scottm Scott Mosher
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: