curl --request GET \
--url https://auth.cognite.com/api/v1/orgs/{org}/principals/{principal}/sessions{
"items": [
{
"id": "aea91e72-a984-4a4c-ba06-a7f54e650825",
"createdTime": 123,
"status": "ACTIVE",
"deactivatedTime": 123
}
],
"nextCursor": {
"cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}
}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).
curl --request GET \
--url https://auth.cognite.com/api/v1/orgs/{org}/principals/{principal}/sessions{
"items": [
{
"id": "aea91e72-a984-4a4c-ba06-a7f54e650825",
"createdTime": 123,
"status": "ACTIVE",
"deactivatedTime": 123
}
],
"nextCursor": {
"cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}
}ID of an organization The ID of an organization
3 - 64^([a-z][a-z0-9-]{1,62}[a-z0-9])$"my-org"
ID of a principal Unique identifier of a principal
"5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT"
Cursor for paging through results. In general, if a response contains a nextCursor
property, it means that there may be more results, and you should pass that value as the
cursor parameter in the next request.
Note that the cursor may or may not be encrypted, but either way, it is not intended to be decoded. Its internal structure is not a part of the public API, and may change without notice. You should treat it as an opaque string and not attempt to craft your own cursors.
"4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
The maximum number of items to return.
1 <= x <= 1000A list of login sessions, with a cursor pointing to the next results page (if any).
Show child attributes
Cursor for paging through results. In general, if a response contains a nextCursor
property, it means that there may be more results, and you should pass that value as the
cursor parameter in the next request.
Note that the cursor may or may not be encrypted, but either way, it is not intended to be decoded. Its internal structure is not a part of the public API, and may change without notice. You should treat it as an opaque string and not attempt to craft your own cursors.
Show child attributes
Was this page helpful?