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

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

#include <account_permissions_changed_event.hpp>

Collaboration diagram for account_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.

Note: This is distinct from permission_changed_event which signals changes to the permissions table itself.

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.