Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:api-pu-profile [2025/04/13 11:38] systemtechnical:api-pu-profile [2025/04/13 15:15] (current) system
Line 7: Line 7:
  
 ====== Change a Permanent User's Profile ====== ====== Change a Permanent User's Profile ======
 +
 +<alert type="warning">
 +  * RADIUSdesk includes a component called 'ISP-Plumbing' which needs to be configured first.
 +  * When this component is configured, any active sessions for a user will be terminated after the profile of a Permanent User is changed
 +  * This comes in handy to activate the new profile upon the user immediately.
 +</alert>
 +
   * To change the Profile of a Permanent User we first have to determine the id of the Permanent User.   * 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.   * A CRM system typically do not know the id of the Permanent User in RADIUSdesk.
Line 12: Line 19:
       * The one API is used get a list of Permanent Users to collect their ids.       * The one API is used get a list of Permanent Users to collect their ids.
       * The other API is used to change the Profile of the list of Permanent Users which was obtained.       * The other API is used to change the Profile of the list of Permanent Users which was obtained.
-<file php permanent_user_disable_enable.php>+<file php permanent_user_change_profile.php>
 <?php <?php
  
Line 28: Line 35:
 // Filter settings // Filter settings
 $filter     = 'username'; //field that filter should apply to $filter     = 'username'; //field that filter should apply to
-$operator   = 'like';  //Options '==','like' +$operator   = '==';  //Options '==','like' 
 $value      = $username; //can also be set to boolean e.g. true or false to filter for instance on the 'active' field $value      = $username; //can also be set to boolean e.g. true or false to filter for instance on the 'active' field
 $limit      = 1000; $limit      = 1000;
  • technical/api-pu-profile.1744537101.txt.gz
  • Last modified: 2025/04/13 11:38
  • by system