Skip to main content

OrgMembership

Represents one user's membership in one organization. Bundles the org, the union of permissions across the user's assigned roles, and the role list itself - so the UI can render an org dashboard without a follow-up round trip.

type OrgMembership {
org: Organization!
permissions: [String!]!
roles: [OrgRole!]!
joinedAt: DateTime!
}

Fields

OrgMembership.org ● Organization! non-null object

The organization.

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

Effective permission keys the user holds in this org (union across assigned roles; full set for super admins).

OrgMembership.roles ● [OrgRole!]! non-null object

Roles assigned to the user in this org.

OrgMembership.joinedAt ● DateTime! non-null scalar

When the user joined the organization.

Returned By

myOrganizations query