List users
https://lemurseye.com/api/v1/usersReturns everyone who can sign in to your company, with their roles and whether they have accepted their invitation.
What each role can do, and which to give whom: People and roles.
Permission: users:read. The token is sent as Authorization: Bearer <token>; see Authentication.
Response
200 An array of people, sorted by email.
Response fields
idstringThe user's id.
emailstringTheir sign-in email.
namestring | nullFull name.
enabledbooleanfalsewhen suspended: they cannot sign in.pendingPasswordbooleantrueuntil they accept the invitation and choose a password.rolesstring[]Their roles in your company:
owner,manager,viewer,installer.lastSeenAttimestamp | nullTheir last activity, or null if they have never signed in.
Errors
Where a message is listed, it comes back as JSON: { "error": "..." }. Otherwise only the status code is returned.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.