List Dashboard Privileges
get
/serviceapi/dashboardModel/privilege/dashboards/{dashboardId}
Get all users and their privileges for the dashboard with assigned dashboard Id.
Request
Path Parameters
-
dashboardId: string(BigInteger)
The id of the dashboard. The id of a dashboard is displayed as a query parameter in the URL while using Oracle Management Cloud through the user interface.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : SuccessfulOperation
Type:
object
Describes the status of a successful dashboard privilege job.
-
dashboardId:
string(BigInteger)
The dashboard id.Example:
1234
-
id:
string(BigInteger)
The id of this privilege.Example:
1111
-
privilegeType:
integer(int32)
The type of privilege this user has.
0 = VIEW
1 = MANAGE
Example:1
- sharePublic: integer(int32)
-
userName:
string
The name of the user.Example:
demouser
Examples
This cURL call will get all privileges for the dashboard with dashboardId: 5432361245:
curl -u ${OMC_USERNAME}:${PASSWORD} -X PUT -H "Content-Type:application/json" "https://{OMC_URL}/serviceapi/dashboardModel/privilege/dashboards/5432361245
Example of Response
The following shows an example of the response body.
{ "dashboardId": "5432361245", "id": "10", "privilegeType": 0, "sharePublic": 0, "userName": "demouser" }