Adds multiple Lark users.
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 administrator. 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 IDs of 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 |
Indicates whether the user group members are added. Valid values:
|
True |
| FailCount |
integer |
The number of failures. |
10 |
| FailResults |
array<object> |
The details of the failures. |
|
|
array<object> |
|||
| FailInfos |
array<object> |
The causes of the errors. |
|
|
object |
|||
| Code |
string |
The error code. |
ACCOUNT_EXIST |
| CodeDesc |
string |
The description of the error code. |
test |
| Input |
string |
The invalid input value. |
20 |
| OkCount |
integer |
The number of successes. |
1 |
| Success |
boolean |
Indicates whether the request is 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 | Lark is not configured for the current organization. |
| 400 | Feishu.User.Need.Sync.Contact | Feishu need to sync contact list. | The Lark address book must be synchronized. |
| 400 | Feishu.Parameter.Error | Feishu config error: %s. | Invalid Lark parameter: %s. |
| 400 | Mail.Invalid | Email/phone number is invalid. | The email address or 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. | The Lark account already exists or is already bound. |
| 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. | Lark users can only be added to Lark or BI user groups. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.