User account cache set (user_caches)

Table of Contents

Description

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

It is not stored in the database, it is lined up after domain boot and is automatically updated in lazy mode in 5 seconds after every significant change in the composition and properties of roles, users, groups.

Allows you to specify a list of groups for a specific user with a single query. Changes for 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. Corresponds to the user ID.

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.