Get catalog item ACL
/api/20210901/catalog/{type}/{id}/actions/getACL
Request
-
id(required): string
Catalog item ID in base64url format.
-
type(required):
Type of catalog item. These content types are supported
- folders - Folders containing catalog objects.
- workbooks - Workbooks.
- subjectAreas - Subject areas.
- datasets - Datasets.
- connections - Objects containing connection details.
- dataflows - Data flows.
- models - Predictive and machine learning models.
- sequences - Sequences.
- analysis - Analyses.
- reports - Pixel-perfect reports (BIP reports).
- dashboards - Dashboards.
- dashboardpages - Dashboard pages.
- dashboardgroupfolders - Workbooks and dashboards available from the Navigation menu on the Home page.
- scripts - Custom scripts for machine learning and data curation.
- */*
string[
""
]Response
- application/json
200 Response
object-
accountDisplayName: string
Display name for the user or application role, if available.
-
accountGuid(required): string
User ID or application role name.
-
accountType(required):
accountType
-
permissions:
permissions
-
string
Allowed Values:
[ "User", "ApplicationRole" ] -
User or ApplicationRole.
-
object
Permissions
-
Enabled permissions. If a permission isn't specified, the permission is disabled.
400 Response
object-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
401 Response
object-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
403 Response
object-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
404 Response
object-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
500 Response
object-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
This example shows you how to obtain the access control list (ACL) for a
specific catalog object, MySalesWorkbook. The object type
value is workbooks. The object ID of the workbook is
/@Catalog/shared/Sales/MySalesWorkbook which has the Base64URL-safe
encoded id value
L0BDYXRhbG9nL3NoYXJlZC9TYWxlcy9NeVNhbGVzV29ya2Jvb2s
cURL Example:
First, obtain the object ID of the workbook you want ACL details for. Base64URL-safe encode
the value to determine the id. You can obtain the Object ID value
from the Inspect dialog for the object in Oracle Analytics Cloud.
Run the cURL command with the required type and id:
curl -i \
--header 'Authorization: Bearer <token>' \
--header 'Content-Length: 0' \
--request POST 'https://<hostname>/api/20210901/catalog/workbooks/L0BDYXRhbG9nL3NoYXJlZC9TYWxlcy9NeVNhbGVzV29ya2Jvb2s=/actions/getACL'
Example of Request Body
Not applicable.
Example of Response Body
Status 200:
[
{
"accountGuid": "BIConsumer",
"accountType": "ApplicationRole",
"accountDisplayName": "BI Consumer",
"permissions": {
"read": true,
"write": false,
"list": true,
"delete": false,
"changePermission": false,
"takeOwnership": false
}
},
{
"accountGuid": "BIServiceAdministrator",
"accountType": "ApplicationRole",
"accountDisplayName": "BI Service Administrator",
"permissions": {
"read": true,
"write": true,
"list": true,
"delete": true,
"changePermission": true,
"takeOwnership": true
}
}
]