Skip to main content

User Overview

Your users need to integrate with RC services to access Instant Messaging (IM) functionality. In RC's system, a "user" refers to an application user who holds a valid Token and has successfully connected to RC's IM service.

Registering Users

You need to use your application server (App Server) to call RC's Register User API with your user's userId to obtain a unique user credential (Token). This step must be completed via server-side API.

When connecting to RC's IM server, the application client must present this Token as authentication. RC will verify the Token's validity to ensure secure connections.

User Registration Limits

  • In the Development environment?, the maximum number of registered users is 100.
  • In the Production environment?, there is no registration limit.

Deleting Users

In your application's Development environment, you can delete registered test users via the Console to manage test user quantities. This operation is not supported in Production environment.

Deactivating Users

User deactivation refers to deleting user data from RC services. Your application can use the server-side Deactivate User API to implement account closure functionality, meeting app store or compliance requirements.

tip

User deactivation capability is only available via server-side API.

After successful deactivation, all data associated with that userId will be deleted. You can query all deactivated userIds. If needed, you can reactivate previously deactivated userIds, but note that the user's personal data cannot be restored.

User Profiles

User profiles generally refer to data such as nicknames, avatars, group nicknames, and group avatars. By default, RC does not store or maintain your application's user profile data - you need to manage this data on your own server.

If you wish to have RC manage user profiles, you can use the User Profile Hosting service which is enabled by default.

Friend Relationships

By default, RC IM services do not store your application's user friend relationship data nor interfere with friend relationship logic. Your application server (App Server) must maintain user friend relationships independently. If you want RC to manage friend relationships, you can use the User Profile Hosting service (enabled by default), which provides friend relationship management functionality.

When using the friend relationship service, non-friends can message each other by default. To restrict messaging to friends only in one-to-one chats, enable this feature in Console under Developer > Profile Hosting Service > Feature Settings.

When not using RC's friend relationship management service, if you need to restrict message exchange behavior between users (e.g., preventing malicious users from bypassing friend relationships to send harassing messages due to userId leakage), you can use the User allowlist service. When enabled, users will only receive messages from users in their allowlist.

User Management APIs

CategoryDescriptionClient APIServer API
Register UserObtain Token for your users.Not availableRegister User
Delete UserSee Deleting Users above.Not availableNot available
Invalidate TokenRevoke Tokens obtained before a specified time.Not availableInvalidate Token
Deactivate UserDisable user ID and delete personal data in RC services.Not availableDeactivate User
Query Deactivated UsersGet list of deactivated user IDs.Not availableQuery Deactivated Users
Reactivate UserRe-enable a deactivated user ID.Not availableReactivate User ID
Set RC-side User InfoSet username and avatar for push notifications etc.Not availableModify User Info
Get RC-side User InfoGet user registration info in RC (including creation time, username for push, avatar URL).Not availableGet Info
Modify RC-side User InfoModify username and avatar for push notifications.Not availableModify Info
Ban UserPrevent user from connecting to RC IM service (effective immediately). Supports setting ban duration, manual unban, and querying banned user IDs with ban end times.Not availableAdd Banned User, Unban User, Query Banned Users
Check Online StatusCheck online status of specified users.Not availableCheck Online Status
Add to BlocklistAdd specified user to blocklist. Users in User A's blocklist cannot message A.Add to BlocklistAdd to Blocklist
Remove from BlocklistRemove specified user from blocklist.Remove from BlocklistRemove from Blocklist
Check Blocklist StatusCheck if specified user is in current user's blocklist.Check User in BlocklistNot available
Get BlocklistGet current user's blocklist.Get BlocklistQuery Blocklist
User AllowlistWhen enabled, users only receive messages from allowlisted users.Not availableEnable Allowlist, Query Allowlist Status, Add to Allowlist, Remove from Allowlist, Query Allowlist