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/27-usergroup248 { "usergroup": { "usergroup_ids": [ 27 ] } } 422 { "error": { "id": 27, "errors": { "usergroups": [ "Validation failed: cannot contain itself as member" ] }, "full_messages": [ "Usergroups Validation failed: cannot contain itself as member" ] } }
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, can be modified by admins only Validations:
|
usergroup[user_ids] optional , nil allowed |
Validations:
|
usergroup[usergroup_ids] optional , nil allowed |
Validations:
|
usergroup[role_ids] optional , nil allowed |
Validations:
|