Group#

pydantic model mobu.models.user.Group#

Configuration for the group memberships of a user.

Parameters:

data (Any)

Show JSON schema
{
   "title": "Group",
   "description": "Configuration for the group memberships of a user.",
   "type": "object",
   "properties": {
      "name": {
         "examples": [
            "g_special_users"
         ],
         "minLength": 1,
         "pattern": "^g_",
         "title": "Name of the group",
         "type": "string"
      },
      "id": {
         "examples": [
            123181
         ],
         "title": "Numeric GID of the group",
         "type": "integer"
      }
   },
   "required": [
      "name",
      "id"
   ]
}

Fields:
field id: int [Required]#
field name: str [Required]#
Constraints:
  • min_length = 1

  • pattern = ^g_