GET /api/usergroups/1/external_usergroups
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"id": 1,
"name": "external_usergroup1",
"auth_source_ldap": {
"id": 980190963,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_1"
}
}
]
}
| 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/1/external_usergroups/1
200
{
"id": 1,
"name": "external_usergroup4",
"auth_source_ldap": {
"id": 980190963,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_4"
}
}
| 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/2-usergroup28/external_usergroups
{
"external_usergroup": {
"name": "foremanusergroup",
"auth_source_id": 980190964
}
}
201
{
"id": 2,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980190964,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_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:
|
|
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/1/external_usergroups/1
{
"external_usergroup": {
"name": "foremanusergroup"
}
}
200
{
"id": 1,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980190963,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_2"
}
}
| 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/1/external_usergroups/1/refresh
{
"external_usergroup": {}
}
200
{
"id": 1,
"name": "external_usergroup5",
"auth_source_id": 980190963,
"usergroup_id": 1
}
| 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/1/external_usergroups/1
{
"external_usergroup": {}
}
200
{
"id": 1,
"name": "external_usergroup3",
"auth_source_id": 980190963,
"usergroup_id": 1
}
| 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:
|