I have gone through the Okta sessions API documentation but however, I did not find a way to get all the user sessions. My goal here is to get the details of all current logged in users.
I got this method from chatGPT and I have tried it using postman web service,
* URL: https://{okta-domain}/api/v1/sessions
* Headers:
* Content-Type: application/json
* Authorization: SSWS {okta-api-token}
The response was,
{
“errorCode”: “E0000022”,
“errorSummary”: “The endpoint does not support the provided HTTP method”,
“errorLink”: “E0000022”,
“errorId”: “oaeKsh7k04cSgO-fmqy1ZVFnA”,
“errorCauses”:
}
I double checked header values, permissions and everything. But I haven’t found anything wrong.
How can I get details of all the current logged in users as the admin??