示例

PUT /api/usergroups/6/external_usergroups/6
{
  "external_usergroup": {
    "name": "foremanusergroup"
  }
}
200
{
  "id": 6,
  "name": "foremanusergroup",
  "auth_source_ldap": {
    "id": 980190968,
    "type": "AuthSourceLdap",
    "name": "auth_source_ldap_277"
  }
}

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
必填

用户组 ID 或名称

Validations:

  • Must be a String

id
必填

外部用户组 ID 或名称

Validations:

  • Must be a String

external_usergroup
必填

外部用户组信息

Validations:

  • Must be a Hash

external_usergroup[name]
选填

外部用户组名称

Validations:

  • Must be a String

external_usergroup[auth_source_id]
选填

链接认证源 ID

Validations:

  • Must be a number.