The Users API allows you to manage users in Snipe-IT.
List Users
curl -X GET "https://your-domain.com/api/v1/users" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Number of results to return
Search string to filter results
sort
string
default:"created_at"
Column to sort by. Allowed values: id, first_name, last_name, display_name, username, email, jobtitle, employee_num, company, location, department, manager, assets_count, licenses_count, accessories_count, consumables_count
Filter by activation status (1 for active, 0 for inactive)
Set to “true” to show only deleted users
Array of user objects
Display name (formatted full name)
Whether user is activated
Number of assets assigned
Number of licenses assigned
Number of accessories assigned
Number of consumables assigned
Get Current User
curl -X GET "https://your-domain.com/api/v1/users/me" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns information about the currently authenticated user.
Get User by ID
curl -X GET "https://your-domain.com/api/v1/users/{user_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Create User
curl -X POST "https://your-domain.com/api/v1/users" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"first_name": "John",
"last_name": "Doe",
"username": "jdoe",
"email": "[email protected]",
"password": "SecurePassword123!"
}'
Username (must be unique)
Password (required unless LDAP user)
Whether user is activated
Update User
curl -X PATCH "https://your-domain.com/api/v1/users/{user_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Jane",
"jobtitle": "Senior Developer"
}'
Delete User
curl -X DELETE "https://your-domain.com/api/v1/users/{user_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Users with checked out assets cannot be deleted until all assets are checked in or transferred.
Get User’s Assets
curl -X GET "https://your-domain.com/api/v1/users/{user_id}/assets" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns all assets assigned to the specified user.
Get User’s Licenses
curl -X GET "https://your-domain.com/api/v1/users/{user_id}/licenses" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns all license seats assigned to the specified user.
Get User’s Accessories
curl -X GET "https://your-domain.com/api/v1/users/{user_id}/accessories" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns all accessories assigned to the specified user.
Restore Deleted User
curl -X POST "https://your-domain.com/api/v1/users/{user_id}/restore" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Restores a soft-deleted user.