User overview
A user is an app user who holds a valid access token and connects to the Nexconn messaging service. This page covers user registration, management, and related concepts.
Register a user
Your app server provides a user ID to the Server API and receives an access token in return. This process is called user registration and must be done through the Server API.
The client app must have a valid access token to connect to the messaging service. When the app sends a connection request, the server verifies the token against its records.
Registration limits:
- Development environment: Up to 100 registered users.
- Production environment: Unlimited registered users with Starter or Pro plan.
Delete a user
Deleting a user removes a test user from the development environment only. This operation is not available in the production environment.
Deactivate a user
Deactivating a user removes all user data from the service. Use this for account deletion features to meet compliance requirements.
After deactivation, all data associated with the user ID is deleted. You can query all deactivated user IDs and reactivate a deactivated user ID if needed (user data cannot be recovered).
These operations are available through the Server API only.
User profiles
You can call the related profile APIs to store user profiles (name, avatar, group nickname, and so on) on the Nexconn server. Nexconn does not automatically import your app-side user data, so your app remains responsible for writing and maintaining that data through these APIs.
Friendships
You can call the related friendship APIs to maintain friend relationships in Nexconn. The messaging service does not automatically import or sync friendship data from your app server, so your app server must create and maintain that data through these APIs.
Without friendship management, your app server must enforce any additional direct-message restrictions on its own.
With friendship management enabled, non-friends can still send messages by default. To restrict messaging to friends only, enable Restrict direct messaging to friends in the Console under Chat > Chat settings > Friend.
User management APIs
| Feature | Client API | Server API |
|---|---|---|
| Register a user | Not available | Register user |
| Delete a user | Not available | Not available |
| Expire tokens | Not available | Expire token |
| Deactivate a user | Not available | Deactivate user |
| Query deactivated users | Not available | Query deactivated users |
| Reactivate a user | Not available | Reactivate user |
| Get user info (server) | Not available | Get info |
| Update user info (server) | Not available | Update info |
| Block a user | Not available | Block, Unblock, Query blocked |
| Check online status | Not available | Check online |