Company groups

Control which companies each Console user can see, and keep that access in sync with your own systems through the Company Groups API.

A company group is a set of companies and a set of Console users. A user in a group can see and work with that group's companies in Check Console. Groups are how you give a support agent, an account manager, or a regional team access to only the employers they are responsible for.

The Company Groups API lets you create groups, change their membership, and delete them, and it emits webhook events whenever a group changes from any surface, including Console. Use it when the set of companies a person should see is something your own systems already know, so Console access follows your data instead of being maintained by hand.

How groups control access

  • Groups only grant. A user in several groups sees the union of their groups' companies. A company is hidden from a user when none of their groups include it.
  • Admin users see everything. Console admins are never scoped by groups. Groups apply to the other Console roles.
  • A user in no group sees either every company or none, depending on how your organization's Console access was configured when it was set up. If you are unsure which applies to you, ask your Check representative.
  • Membership takes effect immediately. When you add a company to a group, every user in the group can see it on their next request.

Groups affect Console access only. API keys are never scoped by company groups. To restrict an API credential to one company, use the Tokens API.

What a group looks like

See the company group object for the full schema. Each group has an id prefixed with company_group_, a label, a created_at timestamp, and two lists of bare IDs: companies and users. Both lists are always present and never null. An empty companies list grants nothing.

{
  "id": "company_group_4mHvR3sN8Wd2LkXJ0yTq",
  "label": "West Coast offices",
  "created_at": "2026-11-18T16:04:27.512946Z",
  "companies": ["com_vIFHhvyGN47ej1upyIT8", "com_7L6EbR0RxgLxuvZybVBG"],
  "users": ["usr_8Wd2LkXJ0yTq4mHvR3sN"]
}

A group holds at most 5,000 companies and 500 users. Every users entry is a usr_ ID of a user that GET /users returns for your organization, so any ID you see in a group can be looked up there.

Listing groups

GET /company_groups returns your groups with cursor-based pagination. The default page size is 25 and the maximum is 100, set with limit. See Pagination for how to walk through pages.

curl "https://api.checkhq.com/company_groups?limit=100" \
  -H "Authorization: Bearer <API_KEY>"

To find the groups a particular user belongs to, filter by users. Repeat the parameter to match any of several users.

curl "https://api.checkhq.com/company_groups?users=usr_8Wd2LkXJ0yTq4mHvR3sN" \
  -H "Authorization: Bearer <API_KEY>"

GET /company_groups/{company_group} returns one group by ID.

Creating a group

POST /company_groups takes a label and optional companies and users lists. Both lists default to empty, so you can create the group first and fill it in later.

curl -X POST https://api.checkhq.com/company_groups \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -H "X-Idempotency-Key: 6f1c2a3e-west-coast" \
  -d '{
    "label": "West Coast offices",
    "companies": ["com_vIFHhvyGN47ej1upyIT8", "com_7L6EbR0RxgLxuvZybVBG"],
    "users": ["usr_8Wd2LkXJ0yTq4mHvR3sN"]
  }'

The response is the new group with a 201 status. Send an X-Idempotency-Key header so a retried request returns the group the first attempt created rather than a duplicate.

Every company and user ID must belong to your organization. An ID that does not match fails the whole request with a validation_error that names the field, and nothing is created.

{
  "error": {
    "type": "validation_error",
    "message": "Please correct the required fields and try again.",
    "input_errors": [
      {
        "message": "One or more companies were not found.",
        "field": "companies",
        "field_path": ["companies"]
      }
    ]
  }
}

Updating a group

PATCH /company_groups/{company_group} changes a group's label, companies, or users. The rules are the same for every field:

  • Leave a field out to keep it as it is.
  • Pass a list to replace the current list.
  • Pass an empty list to remove every member.
  • null is rejected, and so are unknown fields.

The whole request is applied as one change, so a PATCH that changes the label and both lists produces one company_group.updated event.

Renaming a group

curl -X PATCH https://api.checkhq.com/company_groups/company_group_4mHvR3sN8Wd2LkXJ0yTq \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"label": "West Coast and Mountain offices"}'

Adding a company

Because companies replaces the list, adding one company means sending the full list with the new ID included. Read the group first, then write it back.

# 1. Read the current list
curl https://api.checkhq.com/company_groups/company_group_4mHvR3sN8Wd2LkXJ0yTq \
  -H "Authorization: Bearer <API_KEY>"

# 2. Write it back with the new company appended
curl -X PATCH https://api.checkhq.com/company_groups/company_group_4mHvR3sN8Wd2LkXJ0yTq \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "companies": [
      "com_vIFHhvyGN47ej1upyIT8",
      "com_7L6EbR0RxgLxuvZybVBG",
      "com_TU2zPejQv7O7CgCsFy9w"
    ]
  }'

If your system is the source of truth for membership, you can skip the read and send the list you already hold. The result is the same either way: the group's companies become exactly the list you sent.

Removing every user

curl -X PATCH https://api.checkhq.com/company_groups/company_group_4mHvR3sN8Wd2LkXJ0yTq \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"users": []}'

The users keep any access they hold through other groups.

Deleting a group

DELETE /company_groups/{company_group} removes the group and its memberships and returns 204. Users lose the company access they had only through that group. Access through other groups is unaffected.

curl -X DELETE https://api.checkhq.com/company_groups/company_group_4mHvR3sN8Wd2LkXJ0yTq \
  -H "Authorization: Bearer <API_KEY>"

Following changes with webhooks

Groups change from two places: your integration through this API, and your team in Console under Settings. To keep your own access records aligned with Check regardless of where a change was made, subscribe to the company_group webhook topic.

Event typeWhen it fires
company_group.createdA group was created.
company_group.updatedA group's label, companies, or users changed.
company_group.deletedA group was deleted. data carries the group as it was.

These event types are not selected by default. Add them to a webhook config's event_types as described in Choosing webhook event types. Each event's data is the full group object, and one write emits one event, even when it changes several fields. An update that leaves the stored group unchanged emits nothing.

Common workflows

A new employer signs up. When your product creates a company in Check, add it to the group for the team that will support it. The users in that group can see the new employer in Console as soon as the PATCH returns.

Someone leaves the team. List the groups that include the user with ?users=usr_…, then PATCH each one with the user removed. Deactivating the user in Console also ends their access, but removing them from groups keeps your membership data accurate.

Regional or franchise access. Create one group per region, put each region's companies in it, and add the regional managers as users. A manager covering two regions goes in both groups and sees both sets of companies.

Audit who can see what. Page through GET /company_groups and join the users and companies lists against your own records. Because every user ID in a group is one that GET /users returns, you can resolve each one to a name and email.

Mirror an identity system. Treat your directory as the source of truth. On each change, compute the full company and user lists for the affected group and send them in one PATCH. Subscribe to the webhook events to catch edits made directly in Console and reconcile them.

Permissions

Reading groups requires the company_group:read or company_group:write scope, creating and updating require company_group:write, and deleting requires company_group:delete. Every lookup is limited to your organization: a group, company, or user ID that belongs to someone else behaves exactly like an ID that does not exist.

Migrating from the previous contract

Earlier versions of this API used pcg_ IDs, a name field, company objects instead of IDs, PUT for updates, and separate add and remove actions. Integrations built on that contract were moved to a per-organization compatibility window and notified directly, with a retirement date of January 15, 2027. If your integration still sends any of those shapes, update it to the contract on this page: company_group_ IDs, label, bare ID lists, and PATCH. pcg_ IDs for existing groups keep the same 20-character suffix, so pcg_<suffix> becomes company_group_<suffix>.


Did this page help you?