Skip to main content

OrgRole

No description

type OrgRole {
orgRoleId: BigInt!
orgId: BigInt!
roleName: String!
description: String
isSystem: Boolean!
createdAt: DateTime!
permissions: [String!]!
}

Fields

OrgRole.orgRoleId ● BigInt! non-null scalar

Unique role id (primary key, BigInt as string).

OrgRole.orgId ● BigInt! non-null scalar

Organization this role belongs to (BigInt as string).

OrgRole.roleName ● String! non-null scalar

Display name of the role.

OrgRole.description ● String scalar

Optional human-readable description of the role.

OrgRole.isSystem ● Boolean! non-null scalar

True for built-in / seeded roles managed by the platform; typically not editable.

OrgRole.createdAt ● DateTime! non-null scalar

When the role was created.

OrgRole.permissions ● [String!]! non-null scalar

Permission keys granted by this role (resolved from org_role_permissions).

Returned By

createOrgRole mutation ● memberRoles query ● orgRoles query ● updateOrgRole mutation

Member Of

OrgMembership object