GET /api/usergroups/45/external_usergroups
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"id": 4,
"name": "external_usergroup8",
"auth_source_ldap": {
"id": 980190969,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_41"
}
}
]
}
| 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/46/external_usergroups/5
200
{
"id": 5,
"name": "external_usergroup9",
"auth_source_ldap": {
"id": 980190970,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_42"
}
}
| 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/44-usergroup343/external_usergroups
{
"external_usergroup": {
"name": "foremanusergroup",
"auth_source_id": 980190968
}
}
201
{
"id": 3,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980190968,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_40"
}
}
| 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/42/external_usergroups/1
{
"external_usergroup": {
"name": "foremanusergroup"
}
}
200
{
"id": 1,
"name": "foremanusergroup",
"auth_source_ldap": {
"id": 980190966,
"type": "AuthSourceLdap",
"name": "auth_source_ldap_38"
}
}
| 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/48/external_usergroups/7/refresh
{
"external_usergroup": {}
}
200
{
"id": 7,
"name": "external_usergroup11",
"auth_source_id": 980190972,
"usergroup_id": 48
}
| 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/47/external_usergroups/6
{
"external_usergroup": {}
}
200
{
"id": 6,
"name": "external_usergroup10",
"auth_source_id": 980190971,
"usergroup_id": 47
}
| 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:
|