AlmondTill/G3N API

NewUserInput

input type

Create-input for a User. accountId names the existing Account to bind (miss → NOT_FOUND/CONSTRUCT; doomed → CONFLICT/REF_STATE; a restricted account is bindable). At most ONE User per (account × group): a live holder refuses CONFLICT/IDENTITY_TAKEN naming it; a doomed holder's binding is taken over atomically. orgRoles is required but MAY be empty; refs validated strict.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the constant 'User'; when supplied it must be non-blank.
accountIdID ID!yesThe existing Account this user binds — immutable thereafter.
orgRolesUserOrgRolesInput [UserOrgRolesInput!]!yesThe initial role-assignment set; may be empty (no org association yet).

Used by