session

listSessions

Description

The listSessions action displays a list of all active sessions on the CAS server. This is a privileged action primarily used by administrators for monitoring server activity, managing resources, and troubleshooting. It provides key details for each session, such as its unique identifier (UUID), the user who initiated it, connection time, and current state.

proc cas; session.listSessions; run;

Examples

This example demonstrates how an administrator can invoke the listSessions action to get a comprehensive list of all sessions currently running on the CAS server. This is useful for monitoring and administrative purposes.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2SESSION.listSessions;
3RUN;
Result :
A result table named 'Session List' is returned. This table includes columns such as 'Session Name', 'UUID', 'User Name', 'State', and 'Authentication Type', with each row representing a unique active session on the server.

FAQ

What is the purpose of the listSessions action in SAS Viya?
What information is provided by the listSessions action for each session?
Are there any access restrictions for the listSessions action?
How can I use the listSessions action in CASL?