Skip to main content

CurrentSessionPermissions

The caller's own effective permission state, as consumed by the frontend's permission provider.

type CurrentSessionPermissions {
pgRole: String
mode: String
assignedRoles: [SessionRoleIdentity]
overrides: JSON
}

Fields

CurrentSessionPermissions.pgRole ● String scalar

The Postgres role the session runs as.

CurrentSessionPermissions.mode ● String scalar

Session mode — user by default, or an elevated mode.

CurrentSessionPermissions.assignedRoles ● [SessionRoleIdentity] list object

The role identities assigned to the caller's account.

CurrentSessionPermissions.overrides ● JSON scalar

Per-permission override grants, as a JSON map.

Returned By

currentSessionPermissions query