Get all users

Description

Gets a list of all system users and user details (available in versions 2020 SP3 and later).

You can also add an additional parameter ("include=user-role") to return user project and project role assignments. This parameter is available in LoadRunner Enterprise 2023 and later. The user role response is supported as JSON only; XML is not currently supported.

URL

Copy code
Get all system users
/Admin/rest/v1/users
Copy code
Get all system users and include user roles
/Admin/rest/v1/users?include=user-roles

Remarks

None

HTTP Method

GET: Returns all the users.

Request

Headers:

One of the following:

  • Content-Type: application/xml

  • Content-Type: application/json

Cookies:

ADM_LWSSO={AdmLwssoCookie};

Request Body:

None

Response

Headers:

One of:

  • Accept: application/xml

  • Accept: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes.

HTML Body:

The fields in the response are:

ElementDescription
UserIDThe user's ID.
UserNameThe user's name.
FullNameThe user's full name.
StatusThe user's status: active or inactive.
DeactivationDateThe date when user's status was set to inactive.
LastUpdateDateThe date when the user was last updated.
TenantAdminSpecifies whether the user is a tenant admin: true or false.
SiteAdminSpecifies whether the user is a site admin: true or false.
AdminViewerSpecifies whether the user is an admin viewer: true or false.
EmailThe user's email address.
DescriptionA description of the user.
Permission level

1. Regular user

3. Admin Viewer

7. Tenant Admin

9. Site Admin

10. System Admin

AdditionalData

Optional fields that return the user's project and project role assignments when ?include=user-roles is added to the request.

UsersRoles

  • Domain. The project's domain.

  • ProjectName. The project's name.

  • ProjectID. The project's ID.

  • Role. The name of the role assigned to the project user. For the list of roles available in the project, see the Users page in LoadRunner Enterprise Administration.

Note: These fields remain empty if the user was not assigned to any project.

UsIsLDAPSpecifies whether the user is LDAP: true or false.
LDAPServerIDThe LDAP server ID.
LDAPUserNameThe LDAP user name.
UsDomAuthThe user domain authentication.

See Also

Add a user
Update a user
Delete a user
Assign project and role to user
Get user by ID
Get list of users by query