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.

Ejemplos

PUT /api/usergroups/4-usergroup14
{
  "usergroup": {
    "name": "test_usergroup",
    "user_ids": [
      980190962
    ]
  }
}
200
{
  "admin": false,
  "created_at": "2019-11-07 08:35:24 UTC",
  "updated_at": "2019-11-07 08:35:24 UTC",
  "name": "test_usergroup",
  "id": 4,
  "external_usergroups": [],
  "usergroups": [],
  "users": [
    {
      "id": 980190962,
      "login": "one",
      "description": null
    }
  ],
  "roles": []
}

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

usergroup
requerido

Validations:

  • Must be a Hash

usergroup[name]
opcional

Validations:

  • Must be a String

usergroup[admin]
opcional , nil permitido

es un grupo de usuarios administradores

Validations:

  • Must be one of: true, false, 1, 0.

usergroup[user_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[usergroup_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type

usergroup[role_ids]
opcional , nil permitido

Validations:

  • Must be an array of any type