Group
A collection of users and service accounts that share the same access level within your organization.
Groups are the primary mechanism for managing access control in Massdriver. Rather than assigning permissions to individual users, you add them to groups that define what they can see and do.
Built-in group โ Every organization has one organization_admin group. It cannot be renamed
or deleted, and its policies cannot be changed.
Starter groups โ New organizations also start with these CUSTOM groups, with no members:
Organization Viewers, Developers, Production Deployers, Platform Engineers, CI / Automation,
and Billing. You can rename them, delete them, or change their policies.
Custom groups โ Create custom groups with the CUSTOM role to grant project-level access.
Each custom group can be assigned project_admin or project_viewer on specific projects.
Members โ Both human users and service accounts can be group members. Users live under
members and are added via addAccountToGroup (auto-adds existing org members or sends an
invitation otherwise). Service accounts live under serviceAccounts and are added via
addServiceAccountToGroup.
type Group {
id: ID!
name: String!
description: String
role: GroupRole!
createdAt: DateTime!
updatedAt: DateTime!
policies(
filter: PoliciesFilter
sort: PoliciesSort
cursor: Cursor
): PoliciesPage
members(
sort: GroupMembersSort
cursor: Cursor
): AccountsPage
invitations(
sort: GroupInvitationsSort
cursor: Cursor
): GroupInvitationsPage
serviceAccounts(
sort: ServiceAccountsSort
cursor: Cursor
): ServiceAccountsPage
}
Fieldsโ
Group.idย โย ID! non-null scalar {#id}โ
Unique identifier for this group.
Group.nameย โย String! non-null scalar {#name}โ
Human-readable name displayed in the UI and API responses.
Group.descriptionย โย String scalar {#description}โ
Optional text explaining the purpose of this group.
Group.roleย โย GroupRole! non-null enum {#role}โ
The access level this group grants to its members.
Group.createdAtย โย DateTime! non-null scalar {#created-at}โ
When this group was created (UTC).
Group.updatedAtย โย DateTime! non-null scalar {#updated-at}โ
When this group was last modified (UTC).
Group.policiesย โย PoliciesPage object {#policies}โ
Paginated list of ABAC policies attached to this group as the principal.
Group policies define what every member of the group can do across the organization.
Group.policies.filterย โย PoliciesFilter input {#group-policies-filter}โ
Narrow the list by effect or action. Filters combine with AND.
Group.policies.sortย โย PoliciesSort input {#group-policies-sort}โ
How to sort results. Defaults to oldest first.
Group.policies.cursorย โย Cursor input {#group-policies-cursor}โ
Cursor from a previous page to fetch the next set of results.
Group.membersย โย AccountsPage object {#members}โ
Paginated list of human accounts that are members of this group.
Service accounts are exposed separately via serviceAccounts โ pair both queries when
rendering the full membership of a group.
Group.members.sortย โย GroupMembersSort input {#group-members-sort}โ
How to sort results. Defaults to email ascending.
Group.members.cursorย โย Cursor input {#group-members-cursor}โ
Cursor from a previous page to fetch the next set of results.
Group.invitationsย โย GroupInvitationsPage object {#invitations}โ
Paginated list of pending invitations to this group. Visible to organization admins only.
Pending invitations are users who have been invited by email but have not yet accepted.
Once accepted, the row is replaced by a GroupMembership and no longer appears here.
Non-admin callers receive null here with a top-level forbidden error so the rest of the
response still resolves; viewers should query Viewer.invites for their own invitations.
Group.invitations.sortย โย GroupInvitationsSort input {#group-invitations-sort}โ
How to sort results. Defaults to email ascending.
Group.invitations.cursorย โย Cursor input {#group-invitations-cursor}โ
Cursor from a previous page to fetch the next set of results.
Group.serviceAccountsย โย ServiceAccountsPage object {#service-accounts}โ
Paginated list of service accounts in this group.
Human accounts are exposed separately via members โ pair both queries when rendering
the full group membership.
Group.serviceAccounts.sortย โย ServiceAccountsSort input {#group-service-accounts-sort}โ
How to sort results. Defaults to name ascending.
Group.serviceAccounts.cursorย โย Cursor input {#group-service-accounts-cursor}โ
Cursor from a previous page to fetch the next set of results.
Returned Byโ
group query
Member Ofโ
GroupPayload objectย โย GroupsPage objectย โย Policy object