Description: Returns the user's details based on the username.
Since: 7.49.3
Authorization: Requires admin authentication using Access Tokens
Usage: GET /access/api/v2/users/{username}
Produces: application/json
Sample Response:
{ "username": "admin", "email": "admin@gmail.com", "admin": true, "effective_admin": true, "profile_updatable": true, "disable_ui_access": false, "internal_password_disabled": false, "last_logged_in": "2024-04-26T10:58:18.351+02:00", "realm": "internal", "groups" : [ ], "status": "enabled" }
Note
From Artifactory release 7.66, the API response contains the effective_admin field to indicate if the user is an administrator, based on the user's associated groups.
Response Codes:
201: Successful
400: Invalid input, object invalid
401: Invalid credentials
403: Insufficient permissions
404: Username not found