automation-hub
2022.10
false
停用不属于公司的用户帐户
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
Automation Hub API 指南
Last updated 2024年4月19日
停用不属于公司的用户帐户
以下请求举例说明了如何使用 /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."
}
}