Search code examples
pythonpython-3.xartifactory

Compiling all artifactory users into a list using Python


I am trying to use Python to retrieve all users in Artifactory and put them into a list. Currently I can only find the solution to retrieving a single user via their username. Is there a way to retrieve all users without needing to input usernames?

I imported the ArtifactoryPath package and I have tried to search usernames using Regex but with no luck.


Solution

  • You can use the Get Users REST API method to get a list of all users.
    Please note that this API requires an admin user.