引用端点

NOTE
如果传递的是用户令牌,则该令牌的用户必须具有所请求组织的“组织管理员”角色。

您可以通过向/acl/reference端点发出GET请求来列出所有权限和资源类型的名称。 这些名称随后可用于对查看当前用户的有效访问控制策略的API调用。

权限是通过Adobe Admin Console管理的策略,可映射到零个或多个资源类型策略。 资源类型是一种策略,它允许对特定类型的Platform资源(如数据集或架构)执行读取、写入和/或删除功能。

API格式

GET /acl/reference

请求

curl -X GET \
  https://platform.adobe.io/data/foundation/access-control/acl/reference \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}'

响应

成功的响应将返回permissions对象和resource-types对象,每个对象分别包含访问权限或资源类型的完整名称列表。

{
  "permissions": {
    "export-audience-for-segment": {
      "segments": [
        "read"
      ]
    },
    "manage-datasets": {
      "connection": [
        "read",
        "write",
        "delete"
      ],
      "datasets": [
        "read",
        "write",
        "delete"
      ]
    }
    {"..."}
  },
  "resource-types": {
    "classes": [
      "read",
      "write",
      "delete"
    ],
    "connection": [
      "read",
      "write",
      "delete"
    ],
    "data-types": [
      "read",
      "write",
      "delete"
    ],
    "...": [
      "..."
    ]
  }
}
recommendation-more-help
631fcab2-5cb1-46ef-ba66-fe098ac723e0