建立使用者組,可以指定父使用者組。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:CreateUserGroup |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| UserGroupId |
string |
否 |
使用者組唯一 ID。
|
pop0001 |
| UserGroupName |
string |
是 |
使用者組名稱。
|
杭州財報 |
| UserGroupDescription |
string |
否 |
使用者組描述。
|
使用者分組描述 |
| ParentUserGroupId |
string |
是 |
父使用者組 ID。可以將建立的使用者組添加到該分組下:
|
3d2c23d4-2b41-4af8-a1f5-f6390f32**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
36829379-0C38-5BC0-830A-92665BF77D4F |
| Result |
string |
返回使用者組添加成功後的 ID。如果添加失敗,返回Null 字元串“”。 |
f5eeb52e-d9c2-4a8b-80e3-47ab55c2**** |
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "36829379-0C38-5BC0-830A-92665BF77D4F",
"Result": "f5eeb52e-d9c2-4a8b-80e3-47ab55c2****",
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Usergroup.Not.Exist | The user group does not exist. | |
| 400 | Duplicate.Name.Error | The name already exists. | |
| 400 | UserGroup.Parent.NotFound | The parent user group does not exist. | |
| 400 | Duplicate.UserGroup.Id | Duplicated usergroupId %s. | |
| 400 | RootUserGroup.Create.Error | organization %s has synchronized with other organizational structures, so user groups cannot be created under the root user group. | |
| 400 | UserGroup.Already.Synchronized | Organization has synchronized with other organizational structures, so you are not allowed to add users under group. | |
| 400 | UserGroup.Layer.Limited | The user group cannot have more than ten layers. | |
| 400 | UserGroup.ExceedsLimit.Error | User group exceed limit, %s. | |
| 400 | Duplicate.UserGroupName.Error | There is already a user group with the same name %s, please rename it before saving. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。