Zendesk Group Memberships API

The Zendesk Group Memberships API lets you programmatically manage the relationship between users (typically agents) and groups in a Zendesk Support account. With it, you can list memberships across the account or scoped to a specific user or group, add a user to a group, remove a user from a group, and set which group is an agents default. Each membership ties a user_id to a group_id and can indicate the default group that agent belongs to, which affects ticket routing and workflows.