Automation Anywhere

Automation Anywhere Automation 360

關閉內容

內容

開啟內容

檢索特定角色 API

  • 已更新:4/07/2021
    • Automation 360 v.x
    • 管理
    • RPA 工作區
    • API 文件

檢索特定角色 API

使用 按 ID API 獲取角色來檢索中的特定角色 Control Room

先決條件

確保具有“ 查看角色 ”權限的管理員角色或自定義角色。

  • URL : http://<your_control_room_url>/v1/usermanagement/roles/2 <Role ID>
  • Method:取得
  • 使用隨安裝的 Swagger 定義文件 Control Room 測試 API 。查看可用的 Swagger API ,網址爲: http://<your_control_room_url>/swagger/
  • 您也可以使用 REST 用戶端來完成此工作。

程序

  1. 將驗證令牌添加到請求標頭。
  2. 添加要檢索的角色 ID ,例如 customRole
  3. 使用 GET 方法和端點 URL : <your _control_robe_url>/v1/usermanagement/ros/2 <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 回應碼
傳送意見反饋