List users
GET {{baseUrl}}/users
Returns a list of users.
Requires BASIC [16] user permissions. If the requesting user has ADMINISTRATOR [64] permissions, Tenable.io returns all attributes for individual user details. Otherwise, user details include only the uuid
, id
, username
, and email
attributes. See Permissions.
RESPONSES
status: OK
{"users":[{"uuid":"7a676323-47bb-4838-9cec-c9f01448bb2d","id":2,"user_name":"admin@example.com","username":"admin@example.com","email":"admin@example.com","name":"Admin Example","type":"local","container_uuid":"36f234c4-4ae3-4353-9324-8ad3dcc7fcc5","permissions":64,"last_login_attempt":1586458924584,"login_fail_count":0,"login_fail_total":0,"enabled":true,"lockout":0,"lastlogin":1544477990398,"uuid_id":"7a676323-47bb-4838-9cec-c9f01448bb2d"},{"uuid":"802ea9fe-701a-4c80-b001-59c252a178cb","id":4,"user_name":"user3@example.com","username":"user3@example.com","email":"user3@example.com","name":"User Sample","type":"local","container_uuid":"36f234c4-4ae3-4353-9324-8ad3dcc7fcc5","permissions":32,"last_login_attempt":1584354906000,"login_fail_count":1,"login_fail_total":1,"enabled":true,"lockout":0,"uuid_id":"802ea9fe-701a-4c80-b001-59c252a178cb"},{"uuid":"ed6fd6a6-9d02-4178-8a71-7dd8b000e526","id":5,"user_name":"user4@example.com","username":"user4@example.com","email":"user4@example.com","name":"User Sample","type":"local","container_uuid":"36f234c4-4ae3-4353-9324-8ad3dcc7fcc5","permissions":32,"last_login_attempt":1588869878417,"login_fail_count":0,"login_fail_total":0,"enabled":true,"lockout":0,"uuid_id":"ed6fd6a6-9d02-4178-8a71-7dd8b000e526"}]}