阅读和查看 Automation Anywhere 文档

Automation Anywhere Automation 360

关闭内容

内容

打开内容

检索特定角色 API

  • 已更新:2021/01/28

    检索特定角色 API

    使用按 ID 获取角色 API 检索 Control Room 中的特定角色。

    先决条件

    确保您具有管理员角色或具有查看角色权限的自定义角色。

    • URL:http://<your_control_room_url>/v1/usermanagement/roles/{ID}
    • Method:GET
    • 使用随 Control Room 安装的 Swagger 定义文件测试 API。查看可用的 Swagger API:http://<your_control_room_url>/swagger/
    • 您还可以使用 REST 客户端来完成此任务。

    过程

    1. 将认证令牌添加到请求标头。
    2. 添加要检索的角色 ID,例如,customRole
    3. 使用 GET 方法和端点 URL: <your_control_room_url>/v1/usermanagement/roles/<role ID>
    4. 发送请求

      响应正文:

      {
        "id": 740,
        "createdBy": 2623,
        "createdOn": "2020-02-24T19:08:09Z",
        "updatedBy": 2623,
        "updatedOn": "2020-02-24T19:08:09Z",
        "tenantId": 1,
        "version": 0,
        "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
        "description": "",
        "name": "customRole",
        "accessRestriction": null,
        "permissions": [
          {
            "id": 59,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:31Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:31Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "managecredentials",
            "resourceId": null,
            "resourceType": "credentials"
          },
          {
            "id": 12,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:31Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:31Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "rolesmanagement",
            "resourceId": null,
            "resourceType": "rolesmanagement"
          },
          {
            "id": 62,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:31Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:31Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "rolesview",
            "resourceId": null,
            "resourceType": "rolesmanagement"
          },
          {
            "id": 58,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:31Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:31Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "myschedule",
            "resourceId": null,
            "resourceType": "taskscheduling"
          },
          {
            "id": 97,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:39Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:39Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "view",
            "resourceId": null,
            "resourceType": "dashboard"
          },
          {
            "id": 30,
            "createdBy": 0,
            "createdOn": "2019-05-21T03:09:31Z",
            "updatedBy": 0,
            "updatedOn": "2019-05-21T03:09:31Z",
            "tenantId": 1,
            "version": 0,
            "tenantUuid": "e100fbce-008c-04ec-4063-7af0af91fb2f",
            "action": "view",
            "resourceId": null,
            "resourceType": "devices"
          }
        ],
        "countPrincipals": 0,
        "principals": []
      }
      REST API 用 HTTP 响应代码响应每个请求。有关响应代码的详细信息,请参阅 API 响应代码
    发送反馈