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/3-usergroup190 { "usergroup": { "name": "test_usergroup", "usergroup_ids": [ 4 ] } } 200 { "admin": false, "created_at": "2019-09-11 14:33:33 UTC", "updated_at": "2019-09-11 14:33:33 UTC", "name": "test_usergroup", "id": 3, "external_usergroups": [], "usergroups": [ { "name": "usergroup191", "id": 4, "created_at": "2019-09-11 14:33:33 UTC", "updated_at": "2019-09-11 14:33:33 UTC" } ], "users": [], "roles": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations 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:
|