Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| technical:api-pu-session [2025/04/13 12:56] – created system | technical:api-pu-session [2025/04/13 14:40] (current) – system | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ====== Terminate a user's sessions ====== | ====== Terminate a user's sessions ====== | ||
| - | * To change the Profile of a Permanent User we first have to determine | + | |
| - | * A CRM system typically do not know the id of the Permanent User in RADIUSdesk. | + | <alert type=" |
| + | In order for RADIUSdesk | ||
| + | </ | ||
| + | |||
| + | * To terminate a user's active sessions we will work on a filtered list of active sessions for a user. | ||
| * With the sample script we use two APIs | * With the sample script we use two APIs | ||
| - | * The one API is used get a list of Permanent | + | * The one API is used get a list of active sessions for a specified |
| - | * The other API is used to change the Profile | + | * The other API is used to terminate each of the sessions |
| - | <file php permanent_user_disable_enable.php> | + | <file php permanent_user_terminate_session.php> |
| <?php | <?php | ||
| Line 103: | Line 107: | ||
| ?> | ?> | ||
| </ | </ | ||
| - | * We are not limited to only one user but we can adjust the filter for instance to change | + | * We are not limited to only one user but we can adjust the filter for instance to terminate |
| * For this we have to make the following adjustments: | * For this we have to make the following adjustments: | ||
| <code php> | <code php> | ||