UiPath Documentation
private-test-cloud
2.2610
true
Guide de l'API Test Cloud privé

Get users

Paged list of the users in a Private Test Cloud organization, with optional directory user filtering, search, sorting, paging, and the category of each user.

Returns a paged list of the users in the organization. Supports both local and directory users. By default, the response contains only local users. Use the sourceFilter query parameter to choose which users to return: DirectoryUsers returns only directory users, such as users from SAML, Microsoft Entra ID, Active Directory, or SCIM, and LocalUsers,DirectoryUsers returns both. Only directory users that already exist in the organization are returned, for example because they signed in or were provisioned through SCIM; the endpoint does not query your identity provider.

Point de terminaison de l’API​

GET https://{yourDomain}/{organizationName}/identity_/api/User/users/{partitionGlobalId}

Étendues​

Nécessite les étendues suivantes :

  • PM.User
  • PM.User.Read

En-têtes de requête.​

--header 'Authorization: Bearer {access_token}'
--header 'Authorization: Bearer {access_token}'
Remarque :

To obtain the {access_token}, make sure to authenticate through one of the methods described in Authentication methods.

Paramètres de chemin d'accès​

ParamètreType de donnéesDescription
partitionGlobalIdChaîne de caractères (string)Requis.
The ID of the organization you want to list the users for.

Paramètres de requête​

ParamètreType de donnéesDescription
sourceFilterChaîne de caractères (string)Optional. Comma-separated list of the user sources to include in the response:
- LocalUsers - users managed in Private Test Cloud, including local users that are linked to a directory account.
- DirectoryUsers - users that originate from a directory identity provider.
If omitted, only LocalUsers are returned.
searchTermChaîne de caractères (string)Optional. Returns only the users whose username, email, name, or surname contains this value.
skipEntierOptional. The number of users to skip. The default value is 0.
topEntierOptional. The number of users to return. The default value is 10.
sortByChaîne de caractères (string)Optional. The field to sort by, for example Name, Email, or CreationTime. The default value is Id.
sortOrderChaîne de caractères (string)Optional. The sort direction: Asc or Desc.

Réponses​

200 Réussite​

Returns the total number of matching users and the requested page of users. The category field of each user indicates how the user relates to your directory integration:

Valeur (Value)CatégorieDescription
0LocalThe user exists only in Private Test Cloud.
1Linked localA local user that is linked to a directory account, typically because the user signed in through the identity provider.
2Répertoire (Directory)The user originates from a directory identity provider.
{
  "totalCount": 2,
  "results": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "userName": "dolores.umbridge@example.com",
      "email": "dolores.umbridge@example.com",
      "name": "Dolores",
      "surname": "Umbridge",
      "displayName": "Dolores Umbridge",
      "isActive": true,
      "category": 0,
      "groupIDs": [
        "string"
      ],
      "creationTime": "2026-01-15T10:20:30Z",
      "lastLoginTime": "2026-08-20T08:00:00Z"
    }
  ]
}
{
  "totalCount": 2,
  "results": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "userName": "dolores.umbridge@example.com",
      "email": "dolores.umbridge@example.com",
      "name": "Dolores",
      "surname": "Umbridge",
      "displayName": "Dolores Umbridge",
      "isActive": true,
      "category": 0,
      "groupIDs": [
        "string"
      ],
      "creationTime": "2026-01-15T10:20:30Z",
      "lastLoginTime": "2026-08-20T08:00:00Z"
    }
  ]
}

400 Requête incorrecte​

The sourceFilter parameter contains a value that this endpoint does not support, for example RobotAccounts.

403 Forbidden​

You requested DirectoryUsers, but returning directory users from this endpoint is disabled for the organization. In Private Test Cloud, directory users are enabled by default.

Exemple de requête​

Supposons que vous ayez rassemblé toutes les informations nécessaires pour créer l'appel d'API.

  • Your {baseURL} is: https://{yourDomain}/{organizationName}/identity_
  • Votre {access_token} est : 1234 (pour des considérations de longueur).
  • Le {partitionGlobalId} est : 3fa85f64-5717-4562-b3fc-2c963f66afa6
  • You want the first 50 local and directory users.

L’appel doit ressembler à l’exemple suivant (cURL) :

curl --location --request GET 'https://{yourDomain}/{organizationName}/identity_/api/User/users/3fa85f64-5717-4562-b3fc-2c963f66afa6?sourceFilter=LocalUsers,DirectoryUsers&top=50' \
--header 'Authorization: Bearer 1234'
curl --location --request GET 'https://{yourDomain}/{organizationName}/identity_/api/User/users/3fa85f64-5717-4562-b3fc-2c963f66afa6?sourceFilter=LocalUsers,DirectoryUsers&top=50' \
--header 'Authorization: Bearer 1234'

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance(opens in new window)

Vous souhaitez apprendre ? UiPath Academy(opens in new window)

Vous avez des questions ? UiPath Forum(opens in new window)

Rester à jour