Skip to content

WhoAmI

WhoAmI = object

environmentId: string


environmentName: string | null


keyName: string | null


organizationId: string


organizationName: string | null


organizationSlug: string | null


optional permissions?: string[]

What the acting role may do, as opposed to what the key’s scopes allow. Absent from an API that predates it, which is why every reader treats a missing list as “not told” rather than “none”.


optional realmId?: string

the realm the key acts in. Absent from an API that predates realms, which is the root by construction; the root of an organization with one realm is never named in Session.contextLine, so nothing changes for it.


optional realmKey?: string | null


optional realmName?: string | null


roleName: string | null


scopes: string[]