List login sessions for a user principal in an organization.
Note that a login session is what a user gets after logging into Fusion, InField, or another Cognite application. It is distinct from the concept of the "sessions" that can be used for background work like Transformations or Functions; however, each such background session is backed by a login session.
This endpoint does not work for service account principals, which do not have login sessions.
Requires the caller to be an admin of the target organization (it is not sufficient to be an admin of an ancestor organization).
A list of login sessions, with a cursor pointing to the next results page (if any).
Bad parameters: the limit is out of range or not a number, or the cursor is invalid.
The calling user is not an admin of the organization, or the principal id references a service account rather than a user.
The principal id does not exist, or does not belong to this organization.
{- "items": [
- {
- "id": "aea91e72-a984-4a4c-ba06-a7f54e650825",
- "createdTime": 0,
- "status": "ACTIVE",
- "deactivatedTime": 0
}
], - "nextCursor": {
- "cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}
}