| Param name | Description | 
|---|---|
| 
      location_id  optional  | 
    
      
 Set the current location context for the request Validations: 
  | 
  
| 
      organization_id  optional  | 
    
      
 Set the current organization context for the request Validations: 
  | 
  
| 
      search  optional  | 
    
      
 filter results Validations: 
  | 
  
| 
      order  optional  | 
    
      
 Sort field and order, eg. ‘id DESC’ Validations: 
  | 
  
| 
      page  optional  | 
    
      
 Page number, starting at 1 Validations: 
  | 
  
| 
      per_page  optional  | 
    
      
 Number of results per page to return, 'all' to return all results Validations: 
  | 
  
| Field name | Type | Possible values | 
|---|---|---|
| name | string | |
| role | string | |
| role_id | integer | 
| Param name | Description | 
|---|---|
| 
      location_id  optional  | 
    
      
 Set the current location context for the request Validations: 
  | 
  
| 
      organization_id  optional  | 
    
      
 Set the current organization context for the request Validations: 
  | 
  
| 
      id  required  | 
    
      
         Validations: 
  | 
  
| Param name | Description | 
|---|---|
| 
      location_id  optional  | 
    
      
 Set the current location context for the request Validations: 
  | 
  
| 
      organization_id  optional  | 
    
      
 Set the current organization context for the request Validations: 
  | 
  
| 
      usergroup  required  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[name]  required  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[admin]  optional , nil allowed  | 
    
      
 is an admin user group Validations: 
  | 
  
| 
      usergroup[user_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[usergroup_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[role_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
User groups linked to external groups (LDAP) are automatically synced with these groups on update. Remember this synchronization will remove any LDAP users manually added to the Foreman user group. Only LDAP users in the external groups will remain. Internal users can be added or removed freely.
| Param name | Description | 
|---|---|
| 
      location_id  optional  | 
    
      
 Set the current location context for the request Validations: 
  | 
  
| 
      organization_id  optional  | 
    
      
 Set the current organization context for the request Validations: 
  | 
  
| 
      id  required  | 
    
      
         Validations: 
  | 
  
| 
      usergroup  required  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[name]  optional  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[admin]  optional , nil allowed  | 
    
      
 is an admin user group Validations: 
  | 
  
| 
      usergroup[user_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[usergroup_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
| 
      usergroup[role_ids]  optional , nil allowed  | 
    
      
         Validations: 
  | 
  
| Param name | Description | 
|---|---|
| 
      location_id  optional  | 
    
      
 Set the current location context for the request Validations: 
  | 
  
| 
      organization_id  optional  | 
    
      
 Set the current organization context for the request Validations: 
  | 
  
| 
      id  required  | 
    
      
         Validations: 
  |