This action requires elevated privileges.
Elevation code: proc cas; accessControl.assumeRole / adminRole="superuser"; run;
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.
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.
| 1 | PROC CAS; |
| 2 | SESSION.listSessions; |
| 3 | RUN; |