automation-hub
latest
false
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
适用于公共部门的 Automation Hub API 指南
Automation CloudAutomation Cloud Public SectorAutomation Suite
Last updated 2024年4月8日

停用不属于公司的用户帐户

以下请求举例说明了如何使用 /edituser API 调用来停用不再属于公司的用户帐户。要执行此调用,我们需使用以下筛选条件:

user_invite_status: 1

user_is_active:0

帖子:https://govcloud.uipath.us/api/v1/openapi/edituser

请求

Content-Type: application/json
	Authorization: Bearer [Tenant ID/Token]
  x-ah-openapi-app-key: [API key if added]
  x-ah-openapi-auth: openapi-token
 data-raw '{
    {
      "user_email": "jane.doe@email.com",
      "user_first_name": "Jane",
      "user_last_name": "Doe",
      "user_location": "Brooklyn",
      "user_department": "Engineering",
      "user_business_unit": "Product",
      "user_job_title": "Developer",
      "user_is_active": 0,
      "user_invite_status": 1,
      "user_roles": [
        {
          "role_id": 6,
          "category_id": 0
        },
        {
          "role_id": 4,
          "category_id": 0
        },
        {
          "role_id": 5,
          "category_id": 3
        }
        ]
    }	Content-Type: application/json
	Authorization: Bearer [Tenant ID/Token]
  x-ah-openapi-app-key: [API key if added]
  x-ah-openapi-auth: openapi-token
 data-raw '{
    {
      "user_email": "jane.doe@email.com",
      "user_first_name": "Jane",
      "user_last_name": "Doe",
      "user_location": "Brooklyn",
      "user_department": "Engineering",
      "user_business_unit": "Product",
      "user_job_title": "Developer",
      "user_is_active": 0,
      "user_invite_status": 1,
      "user_roles": [
        {
          "role_id": 6,
          "category_id": 0
        },
        {
          "role_id": 4,
          "category_id": 0
        },
        {
          "role_id": 5,
          "category_id": 3
        }
        ]
    }

响应

Content-Type: application/json

{
    "message": "Resource Updated",
    "statusCode": 201,
    "data": {
        "message": "Sync Successful."
    }
}    {
    "message": "Resource Updated",
    "statusCode": 201,
    "data": {
        "message": "Sync Successful."
    }
}

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo White
信任与安全
© 2005-2024 UiPath。保留所有权利。