Skip to main content

Get user tokens

Gets the list of user tokens (API keys)

Function GetUserTokens(Val URL, Val Token, Val UserID) Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringReportPortal server URL
Token--tokenStringAccess token
UserID--userStringUser ID
Returns

Map Of KeyAndValue - serialized JSON response from ReportPortal

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

Result = OPI_ReportPortal.GetUserTokens(URL, Token, UserID);
oint rportal GetUserTokens \
--url "tests.openintegrations.dev" \
--token "***" \
--user 1
Result
{
"items": [
{
"id": 9,
"name": "Main",
"user_id": 1,
"created_at": "2026-03-24T17:51:03.500494Z",
"last_used_at": "2026-05-26T00:00:00Z"
}
]
}