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.
PUT /api/usergroups/4 { "usergroup": { "name": "usergroup323" } } 422 { "error": { "id": 4, "errors": { "name": [ "has already been taken" ] }, "full_messages": [ "Name has already been taken" ] } }
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:
|