Automation Hub
最新
False
横幅背景图像
Automation Hub API 指南
上次更新日期 2024年1月29日

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

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

user_invite_status: 1

user_is_active:0

发布: https://automation-hub.uipath.com/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 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.