Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
technical:api-pu-session [2025/04/13 12:56] – created systemtechnical: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 the id of the Permanent User+ 
-  * A CRM system typically do not know the id of the Permanent User in RADIUSdesk.+<alert type="warning"> 
 +In order for RADIUSdesk to terminate an active session the RADIUS Client or NAS has to be configured correctly. 
 +</alert> 
 + 
 +  * 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 Users to collect their ids+      * The one API is used get a list of active sessions for a specified Permanent User, if there are any
-      * The other API is used to change the Profile of the list of Permanent Users which was obtained. +      * The other API is used to terminate each of the sessions which was obtained with the first API call
-<file php permanent_user_disable_enable.php>+<file php permanent_user_terminate_session.php>
 <?php <?php
  
Line 103: Line 107:
 ?> ?>
 </file> </file>
-  * We are not limited to only one user but we can adjust the filter for instance to change the Profiles of all the users with a specific suffix e.g. @dev.+  * We are not limited to only one user but we can adjust the filter for instance to terminate the sessions of all the users with a specific suffix e.g. @dev.
   * For this we have to make the following adjustments:   * For this we have to make the following adjustments:
 <code php> <code php>
  • technical/api-pu-session.1744541768.txt.gz
  • Last modified: 2025/04/13 12:56
  • by system