Skip to main content

Get users

Gets the list of existing users

Function GetUsers(Val URL, Val Token, Val Page = 1) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
Page--pageNumberList page number
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";

Result = OPI_ReportPortal.GetUsers(URL, Token);
oint rportal GetUsers \
--url "tests.openintegrations.dev" \
--token "***"
Result
{
"content": [
{
"uuid": "e5f6d2db-e63a-48d5-915a-e8ac666d0b2a",
"active": true,
"loaded": true,
"id": 1,
"userId": "superadmin",
"email": "superadminemail@domain.com",
"photoId": "dXNlcnMvc3VwZXJhZG1pbg",
"fullName": "tester",
"accountType": "INTERNAL",
"userRole": "ADMINISTRATOR",
"photoLoaded": true,
"metadata": {
"last_login": 1779806267801,
"attachmentContentType": "image/jpeg"
},
"assignedProjects": {
"superadmin_personal": {
"projectId": 1,
"projectRole": "PROJECT_MANAGER",
"entryType": "PERSONAL"
},
"test": {
"projectId": 4,
"projectRole": "PROJECT_MANAGER",
"entryType": "INTERNAL"
}
}
},
{
"uuid": "1f5b36f7-9bc0-48bf-a712-fb9dfb0ed95f",
"active": true,
"loaded": true,
"id": 6,
"userId": "default",
"email": "example@example.com",
"fullName": "Default",
"accountType": "INTERNAL",
"userRole": "USER",
"photoLoaded": true,
"metadata": {
"last_login": 1774095282438
},
"assignedProjects": {
"test": {
"projectId": 4,
"projectRole": "MEMBER",
"entryType": "INTERNAL"
},
"default_personal": {
"projectId": 8,
"projectRole": "PROJECT_MANAGER",
"entryType": "PERSONAL"
}
}
},
{
"uuid": "0f0fac7a-f9a8-4f23-8bcb-b2a357b09092",
"active": true,
"loaded": true,
"id": 79,
"userId": "test",
"email": "test@example.com",
"fullName": "Test User",
"accountType": "INTERNAL",
"userRole": "USER",
"photoLoaded": true,
"metadata": {
"last_login": 1779806305145
},
"assignedProjects": {
"test": {
"projectId": 4,
"projectRole": "MEMBER",
"entryType": "INTERNAL"
},
"test_personal": {
"projectId": 155,
"projectRole": "PROJECT_MANAGER",
"entryType": "PERSONAL"
}
}
}
],
"page": {
"number": 1,
"size": 30,
"totalElements": 3,
"totalPages": 1
}
}