Shotstash
API referenceGraphQL referenceQueries

Pending Users

Accounts waiting for sign-up approval. Needs users.view.

Accounts waiting for sign-up approval. Needs users.view.

Returns

[User!]!
  1. returns

A person with an account on this instance.

id*ID!

Unique id.

name*String!

Display name.

email*String!

Sign-in email address.

role*Role!

Current role.

Values

SUPER_ADMIN

Owns the instance: every permission, including instance settings and workers.

ADMIN

Manages users, projects and every team share link.

FIELD_CREW

Uploads and organizes media in the field.

EDITOR

Works with media: uploads, organizes and processes files.

VIEWER

Views projects and media only.

active*Boolean!

False when an admin deactivated the account (it cannot sign in).

accountStatus*String!

Sign-up review state: PENDING (waiting for an admin; may still sign in to see the waiting screen or finish onboarding), ACTIVE or REJECTED (cannot sign in).

requestedRole?Role

The role asked for during onboarding, null when none.

Values

SUPER_ADMIN

Owns the instance: every permission, including instance settings and workers.

ADMIN

Manages users, projects and every team share link.

FIELD_CREW

Uploads and organizes media in the field.

EDITOR

Works with media: uploads, organizes and processes files.

VIEWER

Views projects and media only.

onboardedAt?DateTime

When onboarding was completed, null before.

avatarUrl?String

Avatar image URL, null when none.

signupAnswers?String

Answers given at sign-up (JSON text), null when none.

locale?String

UI locale; null means the instance default (SHOTSTASH_DEFAULT_LOCALE, then en).

hasPassword*Boolean!

False for a Google-only account that has no password yet.

readOnly*Boolean!

When true, every write is denied for this account.

permissions*[String!]!

Actions this user may perform; clients decide what to show from this list only.

features*

Instance feature toggles (the same for every user).

createdAt*DateTime!

When the account was created.

query PendingUsers {  pendingUsers {    id    name    email    role    active    accountStatus    requestedRole    onboardedAt    features {      signup      google      search      passwordResetEmail      discussion      demo    }  }}