Skip to main content

setSuperAdmin

ADMIN PRIVILEGE CHANGE: grants or revokes platform super-admin on the target user, changing their privileges across the whole platform. Requires a super-admin bearer game token (and the management API enabled). NOTE: in cks-game-api super-admin checks always fail and the users table is management-owned — perform this via cks-management-api.

setSuperAdmin(
userId: BigInt!
value: Boolean!
): User!

Arguments

setSuperAdmin.userId ● BigInt! non-null scalar

Target user id (BigInt as a decimal string).

setSuperAdmin.value ● Boolean! non-null scalar

true grants super-admin; false revokes it.

Type

User object