UiPath Documentation
private-test-cloud
2.2610
true
Private Test Cloud API guide

Get organization access policy

API reference for retrieving organization access policy in Private Test Cloud, including endpoints, request fields, and responses.

Retrieves all entities defined in the access policy for a specific organization.

Endpoint​

GET /api/PartitionAccessPolicy/{partitionGlobalId}

Request headers​

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

Parameters​

NameTypeLocationRequiredDescription
partitionGlobalIdGUIDPathYesThe global identifier of the organization. For steps on retrieving partitionGlobalId, refer to Retrieving partitionGlobalId for API use

Responses​

200 OK​

[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Engineering Team",
    "type": "Group",
    "directoryId": "750e8400-e29b-41d4-a716-446655440000"
  },
  {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "name": "john.doe@company.com",
    "type": "User",
    "directoryId": "750e8400-e29b-41d4-a716-446655440000"
  }
]
[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Engineering Team",
    "type": "Group",
    "directoryId": "750e8400-e29b-41d4-a716-446655440000"
  },
  {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "name": "john.doe@company.com",
    "type": "User",
    "directoryId": "750e8400-e29b-41d4-a716-446655440000"
  }
]

Example request​

[
    {
        "objectType": "DirectoryGroup",
        "externalId": null,
        "source": "local",
        "identifier": "cdc34b5b-77d2-4ae1-9744-209d21ce557d",
        "name": "Automation Users",
        "email": null,
        "displayName": "Automation Users"
    },
    {
        "objectType": "DirectoryGroup",
        "externalId": null,
        "source": "local",
        "identifier": "35551807-06b1-4cda-90a1-2fb84851eee7",
        "name": "Administrators",
        "email": null,
        "displayName": "Administrators"
    }
]
[
    {
        "objectType": "DirectoryGroup",
        "externalId": null,
        "source": "local",
        "identifier": "cdc34b5b-77d2-4ae1-9744-209d21ce557d",
        "name": "Automation Users",
        "email": null,
        "displayName": "Automation Users"
    },
    {
        "objectType": "DirectoryGroup",
        "externalId": null,
        "source": "local",
        "identifier": "35551807-06b1-4cda-90a1-2fb84851eee7",
        "name": "Administrators",
        "email": null,
        "displayName": "Administrators"
    }
]

Error responses​

  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: Insufficient permissions (not in Administrators group or missing required scope)
  • 404 Not Found: Organization does not exist
  • Endpoint​
  • Request headers​
  • Parameters​
  • Responses​
  • 200 OK​
  • Example request​
  • Error responses​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated