listUsers
GET
/api/v1/users
const url = 'https://example.com/api/v1/users';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/usersList dashboard user accounts. Requires the users.manage capability and the admin scope.
Responses
Section titled “ Responses ”User accounts with MFA enrollment state
Media typeapplication/json
object
data
required
object
items
required
Array<object>
object
id
required
string format: uuid
name
required
string
username
required
string
role
required
Role key. The built-in roles are owner, administrator, editor, contributor, and viewer. Custom role keys start with “custom.”. Decide authorization from the capabilities the server reports, not from the role key.
string
active
required
boolean
createdAt
required
string format: date-time
lastLoginAt
string | null format: date-time
mfaEnrolled
required
boolean
mfaRequired
required
boolean
total
required
integer
Example
{ "data": { "items": [ { "role": "owner" } ] }}Dashboard authentication required
Insufficient role