Saltar al contenido

app.active_org_selections

TablaSeguridad a nivel de fila activa

The org each sign-in chose in the context switcher (ADR 0007 item 1). The custom access token hook copies it into the org_id claim while the membership is active. Written only through app.set_active_org.

Clave primaria: user_id

Columnas de app.active_org_selections
ColumnaTipoAdmite nulosDescripción
user_iduuidNoSign-in (auth.users.id) that made the choice; one row per sign-in.Hace referencia a auth.users.id
org_iduuidNoChosen org. A choice whose membership ended stays here but no longer reaches the token.Hace referencia a app.organizations.id
selected_attimestamp with time zoneNoWhen the org was last chosen.