Identity Management API
These endpoints allow to interact with the configured identity provider.
Please note, that not all functions are supported by all identity providers. In case a function is not supported, an UnsupportedOperationException gets thrown. All calls - except the GET methods - are logged in the audit log.
| Method | Endpoint |
|---|---|
|
|
Description Get a list of all users as JSON. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, query-users |
|
Returns The requested data as JSON. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a user by providing the data as JSON in the body. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example body
|
|
Consumes
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Update a user by providing the data as JSON in the body. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example body
|
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Update the password of a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example form
|
|
Path Parameter
|
|
Form Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get all organisations as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, view-users, query-groups |
|
Query Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Get all users of an organisation as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, view-users, query-groups |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get the mapped roles of an organisation as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-realm, view-realm, view-users |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a role to an organisation. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-users AND view-realm AND view-client) |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Remove a role from an organisation. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-users AND view-realm AND view-client) |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add an organisation. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Path Parameter
|
|
Form Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete an organisation. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get all roles as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-realm, view-realm, query-clients, query-users, query-groups, query-realms, manage-clients, view-clients |
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Get the users of a role as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (view-users AND query-users) |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get mapped roles of a role as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (view-realm AND view-clients) |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a mapped role to a role. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-realm AND manage-clients) |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete a mapped role from a role. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-realm AND manage-clients) |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a role. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-realm AND manage-clients) |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete a role. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-realm AND manage-clients) |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get all rights as a JSON array. |
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user, API Key or access token is required. |
|
|
|
Description Get the users of a right as a JSON array. |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete a right from all users. |
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get the organisations of a user as JSON a array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (view-users AND query-users) |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add an organisation to a user by providing the data as JSON in the body. If the specified organisation does not exist, it is created. Example body
When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete the organisation of a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get the roles of a user as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (view-users AND query-users) |
|
Path Parameter
|
|
Query Parameter
|
|
Returns If includeMappingInfo = false, then a list of roles is returned: Example response
If includeMappingInfo = true, a list of role objects with fields name and direct (indicating that the role is not inherited by an IDP inheritance) is returned. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a role to a user by providing the data as JSON in the body. If the specified role does not exist, it is created. Example body
|
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete the role of a user. |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get the rights of a user as a JSON array. |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Add a right to a user by providing the data as JSON in the body. If the specified right does not exist, it is created. Example body
|
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Delete the right of a user. |
|
Consumes
|
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|
|
|
|
Description Get the data of a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (query-users and view-users) |
|
Path Parameter
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user, API Key or access token must have either the following role or right.
|