Group

Group Type

Represents a group of users in the system. Groups provide a way to organize users and assign roles collectively for access control and permissions management.

Fields

Field
Type
Description

id

ID!

Unique identifier of the group

createdAt

Time!

Creation timestamp

createdBy

UUID!

User identifier who created the group

updatedAt

Time

Last update timestamp

updatedBy

UUID

User identifier who last updated the group

deletedAt

Time

Deletion timestamp

deletedBy

UUID

User identifier who deleted the group

tenantID

UUID!

Tenant identifier

name

String!

Name of the group

description

String

Description of the group

users

[User!]

Users that belong to this group

roles

[Role!]

Roles assigned to this group

Interfaces

  • Node

Usage Example

Relations

  • Group M:N User: A group can contain multiple users, and users can belong to multiple groups

  • Group M:N Role: A group can have multiple roles, and roles can be assigned to multiple groups

Purpose

Groups provide a convenient way to manage permissions by organizing users and assigning roles collectively. Instead of assigning roles to individual users, administrators can assign roles to groups and then add users to those groups. This simplifies access control management in multi-user environments.

Last updated

Was this helpful?