List workforce members
const url = 'https://api.varman.io/v1/people?includeDeactivated=example&onboardAfter=example&onboardBefore=example&offboardAfter=example&offboardBefore=example';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
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.varman.io/v1/people?includeDeactivated=example&onboardAfter=example&onboardBefore=example&offboardAfter=example&offboardBefore=example' \ --header 'X-API-Key: <X-API-Key>'List employees and contractors with onboarding, training, device, and compliance status used for people-security controls.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”People retrieved successfully
object
object
Member ID
Organization ID this member belongs to
User ID associated with member
Member role
When the member was created
Member department. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
Job title for the member
object
Whether member is active
Whether member is deactivated
FleetDM label ID for member devices
object
User information
object
User ID
User name
User email
Whether email is verified
User profile image URL
object
When the user was created
When the user was last updated
Last login time
object
Platform role of the user (managed by Better Auth admin plugin)
object
Background check requests for this member
object
Background check request ID
Background check status
Total number of people
How the request was authenticated
object
User ID
User email
Example
{ "data": [ { "id": "mem_abc123def456", "organizationId": "org_abc123def456", "userId": "usr_abc123def456", "role": "admin", "createdAt": "2024-01-01T00:00:00Z", "department": "it", "isActive": true, "fleetDmLabelId": 123, "user": { "id": "usr_abc123def456", "name": "John Doe", "email": "john.doe@company.com", "emailVerified": true, "image": "https://example.com/avatar.jpg", "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-15T00:00:00Z", "lastLogin": "2024-01-15T12:00:00Z" } } ], "count": 1, "authType": "api-key", "authenticatedUser": { "id": "usr_abc123def456", "email": "user@company.com" }}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Invalid or expired API key"}Organization not found
object
Example
{ "message": "Organization with ID org_abc123def456 not found"}Internal server error
object
Example
{ "message": "Failed to retrieve members"}