Get user
Gets user information by login
- Parameters
- Advanced call ?
Function GetUser(Val URL, Val Token, Val Login) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | ReportPortal server URL |
| Token | --token | String | ✔ | Access token |
| Login | --login | String | ✔ | Users login |
Returns
Map Of KeyAndValue - serialized JSON response from ReportPortal
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
URL = "tests.openintegrations.dev";
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX25hbWUiOiJzdXBlcmFkbWluIiwic2NvcGVzIjpbInVpIl0sImV4cCI6MTc2MjAwMDI3NiwiaWF0IjoxNzYxOTEzODc2LCJqdGkiOiI0NTI3YTc5OS0wN2...";
Login = "test";
Result = OPI_ReportPortal.GetUser(URL, Token, Login);
- Bash
- CMD/Bat
oint rportal GetUser \
--url "tests.openintegrations.dev" \
--token "***" \
--login "test"
oint rportal GetUser ^
--url "tests.openintegrations.dev" ^
--token "***" ^
--login "test"
Result
{
"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_personal": {
"projectId": 155,
"projectRole": "PROJECT_MANAGER",
"entryType": "PERSONAL"
},
"test": {
"projectId": 4,
"projectRole": "MEMBER",
"entryType": "INTERNAL"
}
}
}