添加組織成員。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:AddUser |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
AdminUser
deprecated
|
boolean |
否 |
是否賦予組織管理員角色。取值範圍:
重要 參數已到期不推薦使用,當傳入 RoleIds 時該參數無效。 |
true |
AuthAdminUser
deprecated
|
boolean |
否 |
是否賦予組織許可權管理員角色。取值範圍:
重要 參數已到期不推薦使用,當傳入 RoleIds 時該參數無效。 |
true |
| UserType |
integer |
是 |
組織成員的使用者類型。取值範圍:
|
1 |
| AccountId |
string |
否 |
阿里雲帳號 ID。 警告 Quick BI 於 2024 年 12 月 31 日之後發布的版本,AccountId 將作為必填參數,請在此之前,對您的 API 進行改造。 |
191476xxxxx23754 |
AccountName
deprecated
|
string |
否 |
阿里雲帳號名稱。
|
xxxxxx@163.com |
| NickName |
string |
是 |
阿里雲帳號暱稱。
|
張三 |
| RoleIds |
string |
否 |
使用者綁定的預置或自訂群組織角色 ID,用英文逗號“,”分割,最多 3 個。取值範圍:
|
111111111,456 |
| CopilotModules |
string |
否 |
使用者的智能化模組配額,當開通多個模組時,以英文逗號分隔。
|
qreport,qExploreNum |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
object |
返回新增阿里雲使用者的詳細資料。 |
|
| AccountName |
string |
阿里雲賬戶。 |
xxxxxx@163.com |
| AdminUser |
boolean |
是否綁定了組織管理員角色。取值範圍:
重要 參數已到期不推薦使用,當傳入 RoleIdList 時該參數無效 |
true |
| AuthAdminUser |
boolean |
是否綁定了許可權管理員角色。取值範圍:
重要 參數已到期不推薦使用,當傳入 RoleIdList 時該參數無效 |
true |
| NickName |
string |
阿里雲帳號暱稱。 |
張三 |
| RoleIdList |
array |
使用者綁定的組織角色 ID 列表。 |
|
|
integer |
組織角色 ID,最多 3 個,包括但不限於組織預置角色:
|
111111111 |
|
| CopilotModules |
array |
所擁有配額的智能化模組。 |
|
|
string |
所擁有配額的智能化模組。 |
qreport |
|
| UserId |
string |
Quick BI 中的 UserID。 |
b5d8fd9348cc4327****afb604 |
| UserType |
integer |
組織成員的使用者類型。取值範圍:
|
1 |
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": {
"AccountName": "xxxxxx@163.com",
"AdminUser": true,
"AuthAdminUser": true,
"NickName": "張三",
"RoleIdList": [
111111111
],
"CopilotModules": [
"qreport"
],
"UserId": "b5d8fd9348cc4327****afb604",
"UserType": 1
},
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Organization.Developers.ReachedTheUpperLimit | The developers of the organization have reached the upper limit:%s | 組織開發人員已達到上限 %s 人,請升級聯絡組織管理員升級開發人員數量。 |
| 400 | Organization.Viewers.ReachedTheUpperLimit | The visitors of the organization have reached the upper limit:%s. | 組織訪問者已達到上限%s人,請升級聯絡組織管理員升級訪問者數量。 |
| 400 | Organization.Analysts.ReachedTheUpperLimit | The analysts of the organization have reached the upper limit:%s. | 組織分析師已達到上限%s人,請升級聯絡組織管理員升級分析師數量。 |
| 400 | NickName.AlreadyIn.Organization | The alias already exists. | 暱稱已存在。 |
| 400 | User.AlreadyIn.Organization | This user is already a member of the current organization. | 該使用者已在當前組織中。 |
| 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 | AnalystUser.NotSupport.AdminOrDevRole | Analyst users do not support granting workspace administrator or developer roles. | 分析師使用者不支援授予工作空間管理員或開發人員員角色。 |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | 群空間不存在。 |
| 400 | Workspace.Type.Error | The type of group workspace is invalid. | 無效的群空間類型。 |
| 400 | Viewer.AddInTo.Workspace | Organization members with viewer type are not allowed to add to workspace: %s. | 不允許將組織的訪客類型使用者添加到工作空間:%s。 |
| 400 | User.AlreadyIn.Workspace | This user already exists. | 該使用者已在群空間中。 |
| 400 | User.AlreadyIn.Role | The user is already assigned this role. | 使用者已經擁有該角色。 |
| 400 | User.OrganizationRole.NotExist | User %s must have role in organization. | 使用者 %s 在組織中必須有一個角色。 |
| 400 | Viewer.CannotHave.CustomRole | Organization viewer cannot have custom roles. | 組織訪問者不能具有自訂角色。 |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | 該角色具有分析員無法授與權限。 |
| 400 | RoleCount.ExceedsLimit.Error | The user role cannot exceed three. | 使用者角色不能超過三個。 |
| 400 | BindRole.NotExist.Error | Bind role not exist, %s. | 綁定的角色不存在,%s。 |
| 400 | DirtyData.Duplicate.User | Dirty data,duplicate user: %s. | 髒資料,重複的使用者:%s。 |
| 400 | Robot.Module.Exhausted | The Quota of %s module has been exhausted. | %s模組的配額已耗盡。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。