Skip to content

AdminUserService

Chatto exposes this service below /api/connect.

Shared message and enum definitions are documented in Shared Types And Enums.

Server-admin user management commands and member-detail reads.

Lists server members for the admin members screen. Requires admin.view-users.

POST /api/connect/chatto.admin.v1.AdminUserService/ListMembers

Request server-admin member rows.

FieldTypeDescription
searchstringCase-insensitive login/display-name search term. Empty disables search.
pagechatto.api.v1.PageRequestPage request. Defaults to 20 results when absent or limit is zero.

Server-admin member rows plus role summaries.

FieldTypeDescription
membersrepeated AdminMemberMatching members.
rolesrepeated chatto.api.v1.RolePublic roles for display-name lookup.
pagechatto.api.v1.PageInfoPage metadata.

Gets one server member plus role/permission metadata for admin details. Requires admin.view-users. Returns NOT_FOUND when the user does not exist.

POST /api/connect/chatto.admin.v1.AdminUserService/GetMember

Request one server-admin member detail record.

FieldTypeDescription
target.user_idstringTarget stable user ID.
target.loginstringTarget login identifier.

Server-admin member detail payload.

FieldTypeDescription
memberAdminMemberMember record.
rolesrepeated AdminRoleRoles for assignment UI.
available_permissionsrepeated stringPermissions available for per-user overrides.
viewer_can_assign_rolesboolWhether the caller may assign/revoke roles.
viewer_can_manage_rolesboolWhether the caller may edit role definitions.
viewer_can_manage_user_permissionsboolWhether the caller may edit direct user permissions.

Gets server member rows for multiple users. Requires admin.view-users.

POST /api/connect/chatto.admin.v1.AdminUserService/BatchGetMembers

Request server-admin member rows for a set of stable user IDs.

FieldTypeDescription
user_idsrepeated stringRequired target user IDs. Unknown IDs are omitted from the response.

Batch server-admin member response.

FieldTypeDescription
membersrepeated AdminMemberFound members. The server preserves first-seen request order and de-duplicates repeated IDs.
rolesrepeated chatto.api.v1.RolePublic roles for display-name lookup.

Assigns a role to a user. Requires role.assign.

POST /api/connect/chatto.admin.v1.AdminUserService/AssignRole

Request to assign a role to a user.

FieldTypeDescription
user_idstringTarget user ID.
role_namestringRole name to assign.

Result of assigning a role.

FieldTypeDescription
memberAdminMemberUpdated admin member row.

Revokes a role from a user. Requires role.assign.

POST /api/connect/chatto.admin.v1.AdminUserService/RevokeRole

Request to revoke a role from a user.

FieldTypeDescription
user_idstringTarget user ID.
role_namestringRole name to revoke.

Result of revoking a role.

FieldTypeDescription
memberAdminMemberUpdated admin member row.

Updates another user’s login and/or display name as an admin action. Requires user.manage-accounts; the caller cannot target their own account.

POST /api/connect/chatto.admin.v1.AdminUserService/UpdateUser

Request to update a user’s identity as a server-admin action.

FieldTypeDescription
user_idstringTarget user ID.
display_nameoptional stringNew display name, when changing it. Empty clears the explicit display name. The server also rejects control and confusing invisible characters.
loginoptional stringNew login identifier, when changing it. The server accepts ASCII letters, digits, period, underscore, and hyphen, starting with a letter or digit.

Result of an admin user update.

FieldTypeDescription
userchatto.api.v1.UserUpdated user profile.
memberAdminMemberUpdated admin member row.

Updates another user’s password as an admin action. Requires user.manage-accounts and a fresh credential for the caller; the caller cannot target their own account.

POST /api/connect/chatto.admin.v1.AdminUserService/UpdateUserPassword

Request to update a user’s password as a server-admin action.

FieldTypeDescription
user_idstringTarget user ID.
passwordstringNew password. The server applies the same password policy as registration and password reset.

Result of an admin password update.

FieldTypeDescription
memberAdminMemberUpdated admin member row.

Clears the target user’s self-service username-change cooldown. Requires user.manage-accounts.

POST /api/connect/chatto.admin.v1.AdminUserService/ClearUsernameCooldown

Request to clear a user’s self-service username-change cooldown.

FieldTypeDescription
user_idstringTarget user ID.

Result of clearing a user’s username-change cooldown.

FieldTypeDescription
clearedboolTrue when the request completed.

Deletes a user account as an admin action. Requires user.delete-any for other users, user.delete-self for the caller, and a fresh credential for the caller.

POST /api/connect/chatto.admin.v1.AdminUserService/DeleteUser

Request to delete a user account as a server-admin action.

FieldTypeDescription
user_idstringTarget user ID.
current_passwordstringCurrent password proof for accounts with a password when the active runtime credential is no longer fresh.

Result of deleting a user account.

FieldTypeDescription
deletedboolTrue when the user was deleted.