WorkOS · Schema
DirectoryUserWithGroups
AuthenticationIdentity ProviderSSOSAMLOIDCSCIMDirectory SyncAuthorizationFGAAudit LogsMFAB2B SaaSAgentsMCP
Properties
| Name | Type | Description |
|---|---|---|
| object | string | Distinguishes the Directory User object. |
| id | string | Unique identifier for the Directory User. |
| directory_id | string | The identifier of the Directory the Directory User belongs to. |
| organization_id | string | The identifier for the Organization in which the Directory resides. |
| idp_id | string | Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats. |
| stringnull | The email address of the user. | |
| first_name | stringnull | The first name of the user. |
| last_name | stringnull | The last name of the user. |
| name | stringnull | The full name of the user. |
| emails | array | A list of email addresses for the user. |
| job_title | stringnull | The job title of the user. |
| username | stringnull | The username of the user. |
| state | string | The state of the user. |
| raw_attributes | object | The raw attributes received from the directory provider. |
| custom_attributes | object | An object containing the custom attribute mapping for the Directory Provider. |
| role | object | |
| roles | array | All roles assigned to the user. |
| created_at | string | An ISO 8601 timestamp. |
| updated_at | string | An ISO 8601 timestamp. |
| groups | array | The directory groups the user belongs to. Deprecated: starting May 1, 2026, this field returns an empty array by default for newly created teams. Existing teams currently depending on this field shoul |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/DirectoryUserWithGroups",
"title": "DirectoryUserWithGroups",
"type": "object",
"properties": {
"object": {
"type": "string",
"description": "Distinguishes the Directory User object.",
"const": "directory_user"
},
"id": {
"type": "string",
"description": "Unique identifier for the Directory User.",
"example": "directory_user_01E1JG7J09H96KYP8HM9B0G5SJ"
},
"directory_id": {
"type": "string",
"description": "The identifier of the Directory the Directory User belongs to.",
"example": "directory_01ECAZ4NV9QMV47GW873HDCX74"
},
"organization_id": {
"type": "string",
"description": "The identifier for the Organization in which the Directory resides.",
"example": "org_01EZTR6WYX1A0DSE2CYMGXQ24Y"
},
"idp_id": {
"type": "string",
"description": "Unique identifier for the user, assigned by the Directory Provider. Different Directory Providers use different ID formats.",
"example": "2836"
},
"email": {
"type": [
"string",
"null"
],
"description": "The email address of the user.",
"example": "marcelina.davis@example.com"
},
"first_name": {
"type": [
"string",
"null"
],
"description": "The first name of the user.",
"example": "Marcelina"
},
"last_name": {
"type": [
"string",
"null"
],
"description": "The last name of the user.",
"example": "Davis"
},
"name": {
"type": [
"string",
"null"
],
"description": "The full name of the user.",
"example": "Marcelina Davis"
},
"emails": {
"type": "array",
"items": {
"type": "object",
"properties": {
"primary": {
"type": "boolean",
"description": "Whether this is the primary email address.",
"example": true
},
"type": {
"type": "string",
"description": "The type of email address.",
"example": "work"
},
"value": {
"type": [
"string",
"null"
],
"description": "The email address value.",
"example": "marcelina.davis@example.com"
}
}
},
"description": "A list of email addresses for the user.",
"deprecated": true
},
"job_title": {
"type": [
"string",
"null"
],
"description": "The job title of the user.",
"example": "Software Engineer",
"deprecated": true
},
"username": {
"type": [
"string",
"null"
],
"description": "The username of the user.",
"example": "mdavis",
"deprecated": true
},
"state": {
"type": "string",
"enum": [
"active",
"suspended",
"inactive"
],
"description": "The state of the user.",
"example": "active"
},
"raw_attributes": {
"type": "object",
"additionalProperties": {},
"description": "The raw attributes received from the directory provider.",
"deprecated": true
},
"custom_attributes": {
"type": "object",
"additionalProperties": {},
"description": "An object containing the custom attribute mapping for the Directory Provider.",
"example": {
"department": "Engineering",
"job_title": "Software Engineer"
}
},
"role": {
"$ref": "#/components/schemas/SlimRole"
},
"roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SlimRole"
},
"description": "All roles assigned to the user."
},
"created_at": {
"format": "date-time",
"type": "string",
"description": "An ISO 8601 timestamp.",
"example": "2026-01-15T12:00:00.000Z"
},
"updated_at": {
"format": "date-time",
"type": "string",
"description": "An ISO 8601 timestamp.",
"example": "2026-01-15T12:00:00.000Z"
},
"groups": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DirectoryGroup"
},
"description": "The directory groups the user belongs to. Deprecated: starting May 1, 2026, this field returns an empty array by default for newly created teams. Existing teams currently depending on this field should migrate to the new access pattern for better throughput performance \u2014 the field is unbounded by user, so users with many group memberships produce large, slow response payloads. Use the List Directory Groups endpoint with a `user` filter to fetch a user's group memberships.",
"deprecated": true
}
},
"required": [
"object",
"id",
"directory_id",
"organization_id",
"idp_id",
"email",
"state",
"raw_attributes",
"custom_attributes",
"created_at",
"updated_at",
"groups"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/workos-directoryuserwithgroups"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.