> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# User and user group relationships

> This reference explains the many-to-many relationship between users and user groups in OneID, detailing methods for adding users to groups and managing these associations.

This reference explains the many-to-many relationship between users and user groups in OneID, detailing methods for adding users to groups and managing these associations.

There is a many-to-many relationship between users and user groups. A user group can contain multiple users, and a user can belong to multiple user groups.

Here are some ways to add users to user groups in OneID:

* Add a user to a user group when creating a user.
* Add a user to multiple user groups when editing a user.
* Add multiple users to a user group when creating or editing a user group.

The following table shows the operations and details of these approaches:

| Operation                                                                                                                               | How many users can be managed? | How many user groups can be managed? |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | ------------------------------------ |
| [Adding a user](/docs/platform/security-and-identity/oneid-identity-and-access-management/users-in-oneid/add-a-user)                    | One                            | One                                  |
| Editing a user                                                                                                                          | One                            | Multiple                             |
| [Adding a user group](/docs/platform/security-and-identity/oneid-identity-and-access-management/user-groups-in-oneid/add-user-groups)   | Multiple                       | One                                  |
| [Editing a user group](/docs/platform/security-and-identity/oneid-identity-and-access-management/user-groups-in-oneid/edit-user-groups) | Multiple                       | One                                  |

For example, when editing an existing user in OneID, you can add the current user to multiple user groups.