User account cache set (user_caches)

Description

Based on the current data in the domain and the current group tree, contains the current full expansion of assigned groups and roles for a specific user.

Not stored in the DB; built after the domain is loaded and automatically updated in lazy mode 5 seconds after every significant change in the composition and properties of roles, users, or groups.

Allows setting the list of groups for a specific user with one request. Changes to other fields are not applied.

Fields

Entity structure
{
  "id": uuid,
  "direct_groups": array<uuid>,
  "direct_roles": array<str>,
  "deep_groups": array<uuid>,
  "deep_roles": array<str>
}
Table 1. Fields
Specification Description

Field: id
Mode: out
Type: uuid
Default: generated

Identifier. Matches the user identifier.

Field: direct_groups
Mode: out
Type: array<uuid>
Default: — 

List of groups that directly include this user. Identifiers

Field: direct_roles
Mode: out
Type: array<str>
Default: — 

List of roles directly assigned to this user. Name codes.

Field: deep_groups
Mode: out
Type: array<uuid>
Default: — 

List of groups that include this user at any nesting level. Identifiers

Field: deep_roles
Mode: out
Type: array<str>
Default: — 

List of roles assigned to this user at any nesting level. Name codes.