User Management
Remove System User IDs
Remove users from the system user ID list
POST
Overview
Remove specified users from the system user ID list, revoking their special system user privileges and identification.Request Body
Required Parameters
Response Fields
Operation status, returns
"ok" on successStatus Codes
| Status Code | Description |
|---|---|
| 200 | System user IDs removed successfully |
| 400 | Request parameter error |
| 403 | No administrative permission |
| 404 | Specified user not in system user list |
| 500 | Internal server error |
Impact of Removal
Revoked Privileges
When users are removed from the system user list, they lose:| Privilege | Impact | Immediate Effect |
|---|---|---|
| Bypass Validation | Must pass standard validation | Message sending restrictions apply |
| System Channels | Lose access to system-only channels | Cannot access restricted channels |
| Rate Limit Exemption | Subject to standard rate limits | API calls limited |
| Priority Processing | Normal priority in message queue | Standard message delivery |
Transition Period
- Immediate: System user status revoked
- Active Connections: Existing connections remain but lose privileges
- Cached Permissions: May take up to 5 minutes to fully propagate
- Message Queue: Messages in queue processed with new permissions
Use Cases
Service Decommissioning
Decommission Old Bot Services:Security Incident Response
Emergency Privilege Revocation:Cleanup Operations
Regular Cleanup of Unused System Users:Migration and Upgrades
Service Migration:Batch Operations
Bulk Removal with Validation:Security Considerations
Pre-removal Validation
Audit and Compliance
Best Practices
- Validation First: Always validate users before removal
- Approval Process: Implement approval workflows for system user changes
- Gradual Rollout: Remove privileges gradually for critical services
- Monitoring: Monitor system behavior after privilege removal
- Rollback Plan: Have a rollback plan in case of issues
- Documentation: Document reasons for removal
- Notification: Notify relevant teams about privilege changes

