Admin API / Mutations
banUser
Bans a user. This removes their product listings, rejects their pending seller applications, and resolves open moderation reports about them. Requires the MODERATOR role or higher and a role higher than the user's. Banning an already-banned user succeeds without changes. The ID of an account of another marketplace gives UserNotFoundError, as an unknown ID does, and changes nothing. unbanUser reverses the ban; the removed items stay removed.
Requires a client key with one of these scopes:
admin:moderation:writeRequires this member role or higher: MODERATORbanUser(
input: BanUserInput!
): BanUserPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | BanUserInput! | The user to ban. |