GET /api/usergroups/:usergroup_id/external_usergroups
Vypsat všechny externí skupiny uživatelů pro uživatelskou skupinu

GET /api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups
List all external user groups for LDAP authentication source

Examples

GET /api/usergroups/2/external_usergroups
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "id": 2,
      "name": "external_usergroup6",
      "auth_source_ldap": {
        "id": 980190964,
        "type": "AuthSourceLdap",
        "name": "auth_source_ldap_273"
      }
    }
  ]
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String


GET /api/usergroups/:usergroup_id/external_usergroups/:id
Show an external user group for user group

GET /api/auth_source_ldaps/:auth_source_ldap_id/external_usergroups/:id
Show an external user group for LDAP authentication source

Examples

GET /api/usergroups/1/external_usergroups/1
200
{
  "id": 1,
  "name": "external_usergroup5",
  "auth_source_ldap": {
    "id": 980190963,
    "type": "AuthSourceLdap",
    "name": "auth_source_ldap_272"
  }
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String

id
Required

Identif. nebo název externí skupiny uživatelů

Validations:

  • Must be a String


POST /api/usergroups/:usergroup_id/external_usergroups
Vytvořit externí skupinu uživatelů propojenou se skupinou uživatelů

Examples

POST /api/usergroups/4-usergroup362/external_usergroups
{
  "external_usergroup": {
    "name": "foremanusergroup",
    "auth_source_id": 980190966
  }
}
201
{
  "id": 4,
  "name": "foremanusergroup",
  "auth_source_ldap": {
    "id": 980190966,
    "type": "AuthSourceLdap",
    "name": "auth_source_ldap_275"
  }
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String

external_usergroup
Required

Informace o externí skupině uživatelů

Validations:

  • Must be a Hash

external_usergroup[name]
Required

Název externí skupiny uživatelů

Validations:

  • Must be a String

external_usergroup[auth_source_id]
Required

ID of linked authentication source

Validations:

  • Must be a number.


PUT /api/usergroups/:usergroup_id/external_usergroups/:id
Update external user group

Examples

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"
  }
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String

id
Required

Identif. nebo název externí skupiny uživatelů

Validations:

  • Must be a String

external_usergroup
Required

Informace o externí skupině uživatelů

Validations:

  • Must be a Hash

external_usergroup[name]
Optional

Název externí skupiny uživatelů

Validations:

  • Must be a String

external_usergroup[auth_source_id]
Optional

ID of linked authentication source

Validations:

  • Must be a number.


PUT /api/usergroups/:usergroup_id/external_usergroups/:id/refresh
Znovu načíst externí skupinu uživatelů

Examples

PUT /api/usergroups/5/external_usergroups/5/refresh
{
  "external_usergroup": {}
}
200
{
  "id": 5,
  "name": "external_usergroup8",
  "auth_source_id": 980190967,
  "usergroup_id": 5
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String

id
Required

Identif. nebo název externí skupiny uživatelů

Validations:

  • Must be a String


DELETE /api/usergroups/:usergroup_id/external_usergroups/:id
Smazat externí skupinu uživatelů

Examples

DELETE /api/usergroups/7/external_usergroups/7
{
  "external_usergroup": {}
}
200
{
  "id": 7,
  "name": "external_usergroup10",
  "auth_source_id": 980190969,
  "usergroup_id": 7
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup_id
Required

Identif. nebo název skupiny uživatelů

Validations:

  • Must be a String

id
Required

Identif. nebo název externí skupiny uživatelů

Validations:

  • Must be a String