GET /api/usergroups/3/external_usergroups
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"id": 2,
"name": "external_usergroup3",
"auth_source_ldap": {
"id": 980191004,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_55"
}
}
]
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
GET /api/usergroups/6/external_usergroups/5
200
{
"id": 5,
"name": "external_usergroup5",
"auth_source_ldap": {
"id": 980191007,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_58"
}
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
|
id required |
ID or name of external user group Validations:
|
POST /api/usergroups/5-usergroup222/external_usergroups
{
"external_usergroup": {
"name": "foremanusergroup",
"auth_source_id": 980191006
}
}
201
{
"id": 4,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980191006,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_57"
}
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
|
external_usergroup required |
External user group information Validations:
|
|
external_usergroup[name] required |
External user group name Validations:
|
|
external_usergroup[auth_source_id] required |
ID of linked authentication source Validations:
|
PUT /api/usergroups/9/external_usergroups/8
{
"external_usergroup": {
"name": "foremanusergroup"
}
}
200
{
"id": 8,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980191010,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_61"
}
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
|
id required |
ID or name of external user group Validations:
|
|
external_usergroup required |
External user group information Validations:
|
|
external_usergroup[name] optional |
External user group name Validations:
|
|
external_usergroup[auth_source_id] optional |
ID of linked authentication source Validations:
|
PUT /api/usergroups/7/external_usergroups/6/refresh
{
"external_usergroup": {}
}
200
{
"id": 6,
"name": "external_usergroup6",
"auth_source_id": 980191008,
"usergroup_id": 7
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
|
id required |
ID or name of external user group Validations:
|
DELETE /api/usergroups/8/external_usergroups/7
{
"external_usergroup": {}
}
200
{
"id": 7,
"name": "external_usergroup7",
"auth_source_id": 980191009,
"usergroup_id": 8
}
| 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:
|
|
usergroup_id required |
ID or name of user group Validations:
|
|
id required |
ID or name external user group Validations:
|