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-permanent-users [2025/04/12 21:48] systemtechnical:api-permanent-users [2026/02/02 18:12] (current) system
Line 6: Line 6:
 ----- -----
  
-====== Realms ====== +====== Permanent Users ====== 
-  * Each **Permanent User**, **Voucher** or **BYOD Device** has to belong to a **Profile** and **Realm** in order to be useful to RADIUS. +  * **Permanent User** has to belong to a **Profile** and **Realm** in order to be useful to RADIUS. 
-  * Before we can bulk import Permanent Users using CSV file, we need to ensure that all the realms that the users belong to in the CSV file already exist+  * In the previous Wiki Pages we already covered adding Profile and a Realm
-  * In this page we will show you how to add a Realm to a  Cloud in RADIUSdesk using an API call.+  * In this page we will show you how to add a Permanent User to a  Cloud in RADIUSdesk using an API call.
   * We will use PHP but the principles can be applied using any programming language.   * We will use PHP but the principles can be applied using any programming language.
  
 ----------------- -----------------
  
-====== Add a Realm using the API ======+====== Add a Permanent User using the API ======
  
-  * Below is a simple as possible script that can be used as reference when adding a Realm using the API.+  * Below is a simple as possible script that can be used as reference when adding a Permanent User using the API.
   * We also show the optional fields that can be included in the API call.   * We also show the optional fields that can be included in the API call.
 <file php add_permanent_users.php> <file php add_permanent_users.php>
Line 49: Line 49:
         'email'         => '',         'email'         => '',
         'address'       => '',         'address'       => '',
-        'from_date'     => '04/12/2025', +        'from_date'     => '2025-12-02', //Submit format: 2026-02-02 (ISO) ISO 8601 format 
-        'to_date'       => ''04/12/2026',+        'to_date'       => '2026-02-02'//Submit format: 2026-02-02 (ISO) ISO 8601 format
         'realm_id'     => 19, //Alternative to Realm's name         'realm_id'     => 19, //Alternative to Realm's name
         'profile_id'    => 49, //Alternative to Profile's name         'profile_id'    => 49, //Alternative to Profile's name
Line 75: Line 75:
 ?> ?>
 </file> </file>
-  * Now that we have created Profiles and Realms, we can move on to adding a Permanent User.+  * Now that we have created a Permanent User, we will cover some common actions that can be done on the Permanent User via the API.
  
  
  • technical/api-permanent-users.1744487294.txt.gz
  • Last modified: 2025/04/12 21:48
  • by system