UiPath Documentation
automation-cloud
latest
false
Automation Cloud API 指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Get organization-level effective access

Organization-level effective access API for retrieving a principal's roles and assignments across active tenants in Automation Cloud.

Retrieves effective access for a user, group, or external application across an organization. The response combines organization-scoped assignments with tenant-level assignments from every active tenant. Folder-level assignment details are not included.

API 端点

POST {accessURL}/{organizationName}/pdp_/api/geteffectiveaccess

{accessURL}替换为您的云平台的基本 URL:

Cloud Platform访问 URL
Automation Cloudhttps://cloud.uipath.com
Automation Cloud 公共部门https://govcloud.uipath.us
Automation Cloud 专用https://{customURL}.dedicated.uipath.com

权限

For requests made with a user access token, the caller must be an Organization Administrator. Tenant Administrators receive a 403 Forbidden response.

请求标头

Authorization: Bearer {access_token}
Content-Type: application/json
Authorization: Bearer {access_token}
Content-Type: application/json

For information about obtaining an access token, see Authentication methods.

查询参数

查询参数数据类型描述
top整数Maximum number of role-assignment groups to return. The default is 10, and the maximum is 50. The value cannot be negative.
skip整数Number of role-assignment groups to skip. The default is 0, and the value cannot be negative.

请求正文

The following example retrieves organization-level effective access for one security principal:

{
  "securityPrincipalId": "00000000-0000-0000-0000-000000000001",
  "scopeIdentifier": {
    "scopeType": "Organization"
  }
}
{
  "securityPrincipalId": "00000000-0000-0000-0000-000000000001",
  "scopeIdentifier": {
    "scopeType": "Organization"
  }
}
属性数据类型描述
securityPrincipalId字符串 (GUID)Identifier of the user, group, or external application whose effective access is returned.
scopeIdentifier.scopeType字符串Must be Organization for organization-level results. The value is case-insensitive.
scopeIdentifier.value.id字符串 (GUID)Optional organization identifier. If included, it must match the caller's organization.
serviceName字符串Optional service-name filter. Only assignments for the specified service are returned.
roleNameStartsWith字符串Optional role-name prefix filter. Only assignments whose role name starts with the specified value are returned.

响应

200 OK

Returns the effective access information for the requested security principal.

Response property描述
roleAssignmentsPaginated assignment groups, keyed by tenant and role. Groups without a tenantId contain organization-scoped assignments. Organization-scoped groups appear before tenant-scoped groups.
grantedServicesMetadataNon-paginated organization-wide list of services for which the principal has a role assignment.
grantedRolesMetadataNon-paginated organization-wide list of roles granted to the principal.

400 Bad Request

Returned when pagination values are invalid or when scopeIdentifier.value.id does not match the caller's organization.

401 未经授权

Returned when the bearer token is missing or invalid.

403 Forbidden

Returned when a user-token caller is not an Organization Administrator.

请求示例

curl --location --request POST 'https://cloud.uipath.com/{organizationName}/pdp_/api/geteffectiveaccess?top=10&skip=0' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "securityPrincipalId": "00000000-0000-0000-0000-000000000001",
  "scopeIdentifier": {
    "scopeType": "Organization"
  }
}'
curl --location --request POST 'https://cloud.uipath.com/{organizationName}/pdp_/api/geteffectiveaccess?top=10&skip=0' \
--header 'Authorization: Bearer {access_token}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "securityPrincipalId": "00000000-0000-0000-0000-000000000001",
  "scopeIdentifier": {
    "scopeType": "Organization"
  }
}'
  • API 端点
  • 权限
  • 请求标头
  • 查询参数
  • 请求正文
  • 响应
  • 200 OK
  • 400 Bad Request
  • 401 未经授权
  • 403 Forbidden
  • 请求示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新