List employees in a group
Returns a list of employees in a group with their policies and enrolments. The employees are returned sorted by addition date, with the most recently added employees appearing first.
Path parameters
Query parameters
Filter by employee ID.
The page of results to return. Defaults to 1 if not provided.
The page of results to return. Defaults to 1 if not provided.
The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.
The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.
Headers
The target platform id. Required only when calling with a dashboard (WorkOS AuthKit) access token instead of a platform API key — the token carries no platform claim, so the caller must say which platform it means. Ignored for platform API key / embed session token callers.
Response
OK
Example response
{
"items": [
{
"id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"policies": [
{
"id": "p_3b1333d87d9d4fd6ad83ba7f6b0e951a"
}
],
"enrolments": [
{
"id": "ei_3b1333d87d9d4fd6ad83ba7f6b0e951a"
}
],
"desired_policy_start_date": "2024-12-01",
"enrolment_date": "2024-12-01",
"scheduled_group_transitions": [
{
"new_group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
"scheduled_date": "2024-12-01"
}
]
}
],
"page": 123,
"page_size": 123,
"total_count": 123,
"has_next_page": true,
"has_previous_page": true
}Changes
Changed in 2 of the 9 revisions of this API.11
- ●
added the new
rejectedenum value to theitems/items/enrolment_status/allOf[EnrolmentStatus]/response property for the response status200response-property-enum-value-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional
headerrequest parameterX-Platform-Idnew-optional-request-parameter
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○