Back to APIs
WorkOS
Add enterprise-grade authentication to your app in hours — Single Sign-On via SAML/OIDC, SCIM directory sync, and admin portal, all via a clean REST API.
Base URL
https://api.workos.comSSOSAMLSCIMenterprisedirectory sync
Endpoints
GET
/user_management/usersList all users in your WorkOS environment.
const response = await fetch("https://api.workos.com/user_management/users", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
console.log(data);Response Preview
{
"data": [{
"object": "user",
"id": "user_01H7X3Y...",
"email": "alice@acme.com",
"first_name": "Alice",
"last_name": "Smith",
"email_verified": true,
"created_at": "2024-01-15T09:00:00Z"
}],
"list_metadata": { "after": null }
}