Skip to main content

AccountBlock

A platform-wide block on an account, set by a super-admin. While it holds, every sign-in and every authenticated request is refused with ACCOUNT_BLOCKED, on CK and on Crowd Altar, and every session, realtime connection and ck-exec socket the account had was ended when it was set. The last block stays readable after it is lifted or lapses.

type AccountBlock {
userId: BigInt!
blocked: Boolean!
blockedAt: DateTime
blockedUntil: DateTime
reason: String
blockedBy: BigInt
}

Fields​

AccountBlock.userId ● BigInt! non-null scalar​

The account.

AccountBlock.blocked ● Boolean! non-null scalar​

Whether the block holds now.

AccountBlock.blockedAt ● DateTime scalar​

When the last block was set; null if the account was never blocked.

AccountBlock.blockedUntil ● DateTime scalar​

When it lapses (or was lifted); null while it lasts until lifted.

AccountBlock.reason ● String scalar​

Why, as the super-admin wrote it.

AccountBlock.blockedBy ● BigInt scalar​

The super-admin who set it.

Returned By​

accountBlock query ● blockAccount mutation ● unblockAccount mutation