General Information
Service | API | Method | Data Model | Workflow |
---|---|---|---|---|
urac | /admin/users/invite | PUT | Users |
Description
- This API invites users that have an id, username, or email that fits the one sent in the user object in the request body to the tenant or subtenant that has the external key sent in the request headers.
- The user will have an automatically generated code if the code parameter under the pin object is set to be true.
- An email with the generated code will be sent to the user.
- The user will be allowed to trigger pin login if the allowed parameter under the same object is set to be true. If the allowed parameter is set to false, another user with allowed pin login should enable pin login in that specific tenant so users that have pin access can log in by pin.
- The invited user will have the subtenant that was invited to under allowedTenants array in config object.
Input
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Users | Body | YES | Object | includes user object, groups array, and pin object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Output
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Invalid Response
Response validation
Name | Mandatory | Type | Special Format | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
succeeded | YES | Array | Array of Objects | Succeeded response information | |||||||||||||||||||||||||||||||||||
One of the following should exist under the succeeded object:
| |||||||||||||||||||||||||||||||||||||||
failed | YES | String | N/A | Failed response information | |||||||||||||||||||||||||||||||||||
|
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
Code | Description |
---|---|
400 | Business logic required data are missing |
520 | Unable to find user |
602 | Model error: + %model_error% |
0 Comments