ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
permissions_changed_event Struct Referencefinal

Domain event indicating that an account's effective permissions have changed. More...

#include <permissions_changed_event.hpp>

Collaboration diagram for permissions_changed_event:
Collaboration graph

Public Attributes

boost::uuids::uuid account_id
 The account whose permissions changed.
 
std::vector< std::string > permission_codes
 The new set of effective permission codes.
 
std::chrono::system_clock::time_point timestamp
 The timestamp of when the change occurred (in UTC).
 

Detailed Description

Domain event indicating that an account's effective permissions have changed.

This event is published when the effective permissions of an account change due to role assignment, revocation, or modification of role permissions. It can be used to update session caches or notify clients.

Member Data Documentation

◆ permission_codes

std::vector<std::string> permission_codes

The new set of effective permission codes.

Contains the complete list of permission codes the account now has, after computing all roles and their associated permissions.