Role Management
Get organization role list
API: /openapi/v2/organization/customRole/list (GET)
Description: Retrieves the list of roles in an organization. (Starting version: On Premises Deployment v5.0.3)
Input parameters: No parameters required
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object []
Returns the list of tag metadata.
roleId
long
The ID of the role.
roleName
string
The name of the role.
authConfigList
List
The configuration of the role.
authKey
string
The permission type. Valid values:
quick_monitor: Indicator monitoring
subscription: Subscription management
offline_download: Downloads
resource_package: Resource plan management
organization_ask: Organization access token (AK/SK)
developer_openapi: Open API
data_service: DataService Studio
admin_authorize3rd: Embedding analysis
component_manage: Custom Components
template_open: Custom templates
custom_driver: Custom drivers (value-added feature)
open_platform_custom_plugin: Custom plug-ins (value-added feature)
enterprise_safety: Enterprise security
actionAuthKeys
List<String>
The list of permission points for workspace resources, not used in this API, no need to care
systemRole
boolean
Indicates whether it is a preset role. Valid values:
true: Yes
false: No
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": [ { "systemRole": true, "roleId": 111111111, "roleName": "Organization Administrator", "authConfigList": [ { "authKey": "open_platform_custom_plugin" }, { "authKey": "offline_download" }, { "authKey": "enterprise_safety" }, { "authKey": "quick_monitor" }, { "authKey": "subscription" }, { "authKey": "resource_package" }, { "authKey": "organization_ask" }, { "authKey": "developer_openapi" }, { "authKey": "data_service" }, { "authKey": "admin_authorize3rd" }, { "authKey": "component_manage" }, { "authKey": "template_open" }, { "authKey": "custom_driver" } ] }, { "systemRole": true, "roleId": 111111112, "roleName": "Permission Administrator", "authConfigList": [ { "authKey": "offline_download" }, { "authKey": "enterprise_safety" }, { "authKey": "quick_monitor" }, { "authKey": "subscription" }, { "authKey": "developer_openapi" }, { "authKey": "data_service" }, { "authKey": "admin_authorize3rd" } ] }, { "systemRole": true, "roleId": 111111113, "roleName": "Regular User", "authConfigList": [ { "authKey": "offline_download" }, { "authKey": "quick_monitor" }, { "authKey": "subscription" }, { "authKey": "developer_openapi" }, { "authKey": "data_service" }, { "authKey": "admin_authorize3rd" } ] }, { "systemRole": false, "roleId": 656704594, "roleName": "Enterprise Security", "authConfigList": [ { "authKey": "offline_download" } ] } ], "success": true }JAVA SDK example:
public static void listOrganizationRoles() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/organization/customRole/list") .setMethod(HttpMethod.GET); String result = openApiClient.syncExecute(request); System.out.println(result); }
Get configuration information for a specific organization role
API: /openapi/v2/organization/customRole/config (GET)
Description: Retrieves the configuration information for a specific organization role. (Starting version: On Premises Deployment v5.0.3)
Input parameters: (content-type: application/x-www-form-urlencoded;charset=UTF-8, parameters submitted as a form)
Parameter
Type
Description
Required
roleId
long
The organization role ID, including preset roles and custom roles:
Organization Administrator (preset role): 111111111
Permission Administrator (preset role): 111111112
Regular User (preset role): 111111113
Custom role: The role ID corresponding to the custom role
Yes
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object
Returns the list of tag metadata.
roleId
long
The organization role ID, including preset roles and custom roles:
Organization Administrator (preset role): 111111111
Permission Administrator (preset role): 111111112
Regular User (preset role): 111111113
Custom role: The role ID corresponding to the custom role
roleName
string
The name of the role.
authConfigList
List
authKey
string
The permission type. Valid values:
quick_monitor: Indicator monitoring
subscription: Subscription management
offline_download: Downloads
resource_package: Resource plan management
organization_ask: Organization access token (AK/SK)
developer_openapi: Open API
data_service: DataService Studio
admin_authorize3rd: Embedding analysis
component_manage: Custom Components
template_open: Custom templates
custom_driver: Custom drivers (value-added feature)
open_platform_custom_plugin: Custom plug-ins (value-added feature)
enterprise_safety: Enterprise security
actionAuthKeys
List<String>
The list of permission points for workspace resources, not used in this API, no need to care
systemRole
boolean
Indicates whether it is a preset role. Valid values:
true: Yes
false: No
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": { "systemRole": true, "roleId": 111111111, "roleName": "Organization Administrator", "authConfigList": [ { "authKey": "open_platform_custom_plugin" }, { "authKey": "offline_download" }, { "authKey": "enterprise_safety" }, { "authKey": "quick_monitor" }, { "authKey": "subscription" }, { "authKey": "resource_package" }, { "authKey": "organization_ask" }, { "authKey": "developer_openapi" }, { "authKey": "data_service" }, { "authKey": "admin_authorize3rd" }, { "authKey": "component_manage" }, { "authKey": "template_open" }, { "authKey": "custom_driver" } ] }, "success": true }JAVA SDK example:
public static void queryOrganizationRoleConfig() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/organization/customRole/config") .setMethod(HttpMethod.GET) .setHttpContentType(FormatType.FORM); request.addParameter("roleId","111111111"); String result = openApiClient.syncExecute(request); System.out.println(result); }
Get the list of users under a specific organization role
API: /openapi/v2/organization/customRole/users (GET)
Description: Retrieves the list of users under a specific organization role. (Starting version: On Premises Deployment v5.0.3)
Input parameters: (content-type: application/x-www-form-urlencoded;charset=UTF-8, parameters submitted as a form)
Parameter
Type
Description
Required
roleId
long
The organization role ID, including preset roles and custom roles:
Organization Administrator (preset role): 111111111
Permission Administrator (preset role): 111111112
Regular User (preset role): 111111113
Custom role: The role ID corresponding to the custom role
Yes
pageNum
integer
The page number.
Default value: 1.
No
pageSize
integer
The number of entries per page.
Default value: 10.
No
keyword
string
The keyword of the organization member's nickname.
No
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object[]
Returns the list of tag metadata.
userId
string
The UserID of the organization member in Quick BI.
nickName
string
The nickname of the organization member.
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": { "data": [ { "nickName": "yubai@xx.com", "userId": "408d9d79dddb4xxxx87332e8a19ae" }, { "nickName": "yubai_xx delete", "userId": "b4b9e2199c7xxxx414fce51ec1522" }, { "nickName": "yubai", "userId": "0e9f596e3e9xxxxd11c4debd81c8" } ], "totalNum": 3, "totalPages": 1, "start": 0, "pageSize": 10, "pageNum": 1 }, "success": true }JAVA SDK example:
public static void listOrganizationRoleUsers() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/organization/customRole/users") .setMethod(HttpMethod.GET) .setHttpContentType(FormatType.FORM); request.addParameter("roleId","111111111"); // Non-required parameters request.addParameter("pageNum","1"); request.addParameter("pageSize","10"); request.addParameter("keyword","yubai"); String result = openApiClient.syncExecute(request); System.out.println(result); }
Get workspace role list
API: /openapi/v2/workspace/customRole/list (GET)
Description: Retrieves the workspace role list. (Starting version: On Premises Deployment v5.0.3)
Input parameters: (content-type: application/x-www-form-urlencoded;charset=UTF-8, parameters submitted as a form)
Parameter
Type
Description
Required
workspaceId
string
The workspace ID.
Yes
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object[]
Returns the list of tag metadata.
roleId
long
The workspace role ID, including preset roles and custom roles:
25: Workspace Administrator (preset role)
26: Developer (preset role)
27: Analyst (preset role)
30: Viewer (preset role)
Custom role: The role ID corresponding to the custom role
roleName
string
The name of the role.
authConfigList
List
authKey
string
The permission type. Valid values:
portal_create: BI portal
dashboard_create: dashboard
report_create: workbook
screen_create: data dashboard
analysis: ad hoc analysis
offline_download: Downloads
data_form: Data filling
quick_etl: Data preparation
cube: dataset
datasource: data source
actionAuthKeys
List<String>
Specific permissions:
edit: Create
use: Use
list: Display list
systemRole
boolean
Indicates whether it is a preset role. Valid values:
true: Yes
false: No
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": [ { "systemRole": true, "roleId": 25, "roleName": "Workspace Administrator", "authConfigList": [ { "authKey": "portal_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "dashboard_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "report_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "screen_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "analysis", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "offline_download", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "data_form", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "quick_etl", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "cube", "actionAuthKeys": [ "edit", "use", "list" ] }, { "authKey": "datasource", "actionAuthKeys": [ "edit", "use", "list" ] } ] } ], "success": true }JAVA SDK example:
public static void listWorkspaceRoles() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/workspace/customRole/list") .setMethod(HttpMethod.GET) .setHttpContentType(FormatType.FORM); request.addParameter("workspaceId","2a687137-b1b7-491a-a421-b2b9d0e03f6e"); String result = openApiClient.syncExecute(request); System.out.println(result); }
Get configuration information for a specific workspace role
API: /openapi/v2/workspace/customRole/config (GET)
Description: Retrieves the configuration information for a specific workspace role. (Starting version: On Premises Deployment v5.0.3)
Input parameters: (content-type: application/x-www-form-urlencoded;charset=UTF-8, parameters submitted as a form)
Parameter
Type
Description
Required
roleId
long
The workspace role ID, including preset roles and custom roles:
25: Workspace Administrator (preset role)
26: Developer (preset role)
27: Analyst (preset role)
30: Viewer (preset role)
Custom role: The role ID corresponding to the custom role
Yes
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object
Returns the list of tag metadata.
roleId
long
The workspace role ID, including preset roles and custom roles:
25: Workspace Administrator (preset role)
26: Developer (preset role)
27: Analyst (preset role)
30: Viewer (preset role)
Custom role: The role ID corresponding to the custom role
roleName
string
The name of the role.
authConfigList
List
The configuration of the role.
authKey
string
The permission type. Valid values:
portal_create: BI portal
dashboard_create: dashboard
report_create: workbook
screen_create: data dashboard
analysis: ad hoc analysis
offline_download: Downloads
data_form: Data filling
quick_etl: Data preparation
cube: dataset
datasource: data source
actionAuthKeys
List<String>
Specific permissions:
edit: Create
use: Use
list: Display list
systemRole
boolean
Indicates whether it is a preset role. Valid values:
true: Yes
false: No
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": { "systemRole": true, "roleId": 25, "roleName": "Workspace Administrator", "authConfigList": [ { "authKey": "portal_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "dashboard_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "report_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "screen_create", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "analysis", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "offline_download", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "data_form", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "quick_etl", "actionAuthKeys": [ "edit", "list" ] }, { "authKey": "cube", "actionAuthKeys": [ "edit", "use", "list" ] }, { "authKey": "datasource", "actionAuthKeys": [ "edit", "use", "list" ] } ] }, "success": true }JAVA SDK example:
public static void queryWorkspaceRoleConfig() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/workspace/customRole/config") .setMethod(HttpMethod.GET) .setHttpContentType(FormatType.FORM); request.addParameter("roleId","25"); String result = openApiClient.syncExecute(request); System.out.println(result); }
Get the list of users under a specific workspace role
API: /openapi/v2/workspace/customRole/users (GET)
Description: Retrieves the list of users under a specific workspace role. (Starting version: On Premises Deployment v5.0.3)
Input parameters: (content-type: application/x-www-form-urlencoded;charset=UTF-8, parameters submitted as a form)
Parameter
Type
Description
Required
roleId
long
The workspace role ID, including preset roles and custom roles:
25: Workspace Administrator (preset role)
26: Developer (preset role)
27: Analyst (preset role)
30: Viewer (preset role)
Custom role: The role ID corresponding to the custom role
Yes
workspaceId
string
The workspace ID, not required. If not provided, returns roles from all workspaces.
No
pageNum
integer
The current page for paged query:
Pages start from page 1
Default value: 1
No
pageSize
integer
The number of rows per page for paged query:
Default value: 10
Maximum value: 1000
No
keyword
string
The keyword of the user's nickname.
No
Return parameter description (when calling SDK, only the data part is returned):
Parameter
Type
Description
traceId
string
Indicates the request ID.
code
string
The error code. Valid values:
0: The call is successful
Error code starting with AE or OE: The call fails
message
string
The error message. Valid values:
success: The call is successful
Other information: The prompt when the call fails
success
boolean
Indicates whether the request was successful. Valid values:
true: The call is successful
false: The call fails
data
object
Returns the list of tag metadata.
totalNum
integer
The total number of rows.
totalPages
integer
The total number of pages.
pageNum
integer
The page number.
pageSize
integer
The number of rows per page set when requesting the API.
data
object[]
The list of users.
nickName
string
The nickname of the organization member.
userId
String
The UserID of the organization member in Quick BI.
workspaceId
String
The workspace ID.
workspaceName
String
The name of the workspace.
Return parameter example:
{ "traceId": "6a1e98a9-eaf5-48b8-bc48-fef74ee34ef1", "code": null, "message": null, "data": { "data": [ { "nickName": "Yang xx", "workspaceName": "Assessment Workspace", "userId": "247d405cbdxxxdaf0347b03ef2d75c", "workspaceId": "308b9461-4xxx-xxx-98ed-d80a4a27257b" } ], "totalNum": 3, "totalPages": 1, "start": 0, "pageSize": 10, "pageNum": 1 }, "success": true }JAVA SDK example:
public static void listWorkspaceRoleUsers() throws SDKException { HttpRequest request = HttpRequest.build() .setUri("/openapi/v2/workspace/customRole/users") .setMethod(HttpMethod.GET) .setHttpContentType(FormatType.FORM); request.addParameter("roleId","25"); // Non-required parameters request.addParameter("workspaceId","308b9461-4e60-****-98ed-d80a4a27257b"); request.addParameter("pageNum","1"); request.addParameter("pageSize","10"); //request.addParameter("keyword","xxx"); String result = openApiClient.syncExecute(request); System.out.println(result); }