Platform API
Before user registration
Validate, reject, or adjust user profiles before OpenIM registers them.
HTTP request
POST {WEBHOOK_ADDRESS}/callbackBeforeUserRegisterCommandRequest body
| Property | Type | Description |
|---|---|---|
| callbackCommand | string | callbackBeforeUserRegisterCommand. |
| users | UserInfo[] | Users about to be registered. See UserInfo. |
Response
Return the common before-event response. An optional users array replaces the profiles OpenIM will process. Use nextCode: 1 with a business error to reject registration.
Processing rules
- Configuration key:
beforeUserRegister. - OpenIM waits synchronously; failure behavior follows
failedContinue.
Was this page helpful?