Please update to the latest patch version to use it.
Basics
POST /api/v2/user/create
Description: Add members to a specified user group and set Identity and Authorized group.
Request Parameters
Optional Body parameters can be omitted, and the parameter format is JSON.
Name | Type | Necessary | Default | Example | Description |
---|---|---|---|---|---|
user_group_id | text | Yes | - | 2 | ID of user group |
name | text | No | - | name | Name of the member. Use the email address as the name if it's not filled |
text | Yes | - | 123@123.com | Account email of the member | |
password | text | Yes | - | Aa12345678 | Password of the member account |
identity | text | No | 4 | 2 |
Identity of the member 2: Administrator(Able to edit all users' functions and access to profile groups) 3: Manager(Able to add members and edit access to profile groups) 4: Member(Default, Unable to add member and edit access to profile groups) |
manager | text | No | - | user_xxx |
Set the manager of the member, only valid when identity=4. Please fill in the user id of the manager. |
member | list | No | - | ["user_xxx","user_xxx"] | Set the members managed by the manager, only valid when identity=3. Up to 300 user id can be filled in. |
authorized_group | list | No | - | ["1","2","3"] | Group id of the authorized groups. "all" means all groups. Up to 1500 group id can be passed at once and up to 3000 id can be filled. Cannot pass "all" and group id at the same time. |
profile_limit | text | No | - | 100 | Limit the number of profiles that the member can create. Leave it blank for no restriction. |
remark | text | No | - | remark | remark |
Return Data
// operation successed
{
"code": 0,
"data": {
"user_id":"xxxx" //user id, encrypted
},
"msg": "Success"
}
// operation failed
{
"code":-1,
"data":{},
"msg":"failed"
}