Get all users
GET
/users/
const url = 'https://api.occulights.com/api/v1/users/';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://api.occulights.com/api/v1/users/ \ --header 'Authorization: <Authorization>'Retrieves all users (including pending invites) for the authenticated tenant
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
email
string
firstName
string
id
string
lastLoginAt
Set by SetUserLastLogin on every successful login. Zero value means this user has never logged in.
object
time.Time
string
lastName
string
orgId
string
pending
boolean
username
string
Example generated
[ { "email": "example", "firstName": "example", "id": "example", "lastLoginAt": { "time.Time": "example" }, "lastName": "example", "orgId": "example", "pending": true, "username": "example" }]Unauthorized
Media typeapplication/json
string
Example generated
exampleInternal Server Error
Media typeapplication/json