Adds Lark users in batches.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:BatchAddFeishuUsers |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IsAuthAdmin |
boolean |
No |
Specifies whether the user is a permission management administrator. Valid values:
Default value: false. |
true |
| IsAdmin |
boolean |
No |
Specifies whether the user is an admin user. Valid values:
Default value: false. |
False |
| FeishuUsers |
string |
No |
The information about the users to be added. |
{"ad****fd": "test", "82****5a": "t't"}" |
| UserGroupIds |
string |
No |
The user groups to which the users belong. |
"0d5fb19b-5555-41f0-99da-1248fc27ca51,0f868dd6_68dd_4d13_8422_c5dca3bd4b61" |
| UserType |
integer |
No |
The user type. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
object |
The result of adding user group members. Valid values:
|
True |
| FailCount |
integer |
The number of users that failed validation. |
10 |
| FailResults |
array<object> |
The details of the failures. |
|
|
array<object> |
|||
| FailInfos |
array<object> |
The error reasons. |
|
|
object |
|||
| Code |
string |
The error code. |
ACCOUNT_EXIST |
| CodeDesc |
string |
The error code description. |
test |
| Input |
string |
The incorrect input value. |
20 |
| OkCount |
integer |
The number of users that were added. |
1 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
True |
Examples
Success response
JSON format
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": {
"FailCount": 10,
"FailResults": [
{
"FailInfos": [
{
"Code": "ACCOUNT_EXIST",
"CodeDesc": "test",
"Input": "20"
}
]
}
],
"OkCount": 1
},
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Feishhu.Config.Not.Exit | Feishu is not configured in the current organization | |
| 400 | Feishu.User.Need.Sync.Contact | Feishu need to sync contact list. | |
| 400 | Feishu.Parameter.Error | Feishu config error: %s. | |
| 400 | Mail.Invalid | Email/phone number is invalid. | |
| 400 | Usergroup.Not.Exist | The user group does not exist. | The user group does not exist. |
| 400 | Instance.Over.MaxLicense | You have reached the maximum number of users that can be added. Please upgrade the configurations or remove some users first. | |
| 400 | Feishu.User.Duplicated | Feishu account already exists or bound:%s. | |
| 400 | Viewer.CannotHave.CustomRole | Organization viewer cannot have custom roles. | Organization viewer cannot have custom roles. |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | This role has permissions that analysts cannot grant. |
| 400 | User.OrganizationRole.NotExist | User %s must have role in organization. | User %s must have role in organization. |
| 400 | FeishuUser.UserGroup.AssociationError | Feishu User can only be added into feishu or Bi user group. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.