Search code examples
artifactory

artifactory/api/security/groups does not seem to accept the includeUsers=true parameter


I'm trying to retrieve all users from the user groups of Artifactory, using the following command: curl -u : -X GET -d 'includeUsers=true' https:///artifactory/api/security/groups

But I only get the groups, not the users. I'm on Artifactory version 6.14.1. The parameter (includedUsers=true) was added in 6.13.

Any idea what is wrong?

thanks, Filip


Solution

  • A Couple of things:

    1. Seems like the includeUsers only works when fetching a specific group's details.
    2. You should be passing the includeUsers as a query param, not with '-d' which is meant to be used with POST/PUT/PATCH methods

    For example:

    curl -u : -X GET "https:///artifactory/api/security/groups/<a group name>?includeUsers=true