Class UserStorageProviderResource
java.lang.Object
org.keycloak.services.resources.admin.UserStorageProviderResource
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AdminEventBuilderprotected final AdminPermissionEvaluatorprotected final ClientConnectionprotected final jakarta.ws.rs.core.HttpHeadersprotected final RealmModelprotected final KeycloakSession -
Constructor Summary
ConstructorsConstructorDescriptionUserStorageProviderResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetErrorCode(Throwable throwable) getSimpleName(String id) Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328voidRemove imported userssyncMapperData(String parentId, String mapperId, String direction) Trigger sync of mapper data related to ldap mapper (roles, groups, ...) direction is "fedToKeycloak" or "keycloakToFed"Trigger sync of users Action can be "triggerFullSync" or "triggerChangedUsersSync"voidunlinkUsers(String id) Unlink imported users from a storage provider
-
Field Details
-
realm
-
auth
-
adminEvent
-
clientConnection
-
session
-
headers
protected final jakarta.ws.rs.core.HttpHeaders headers
-
-
Constructor Details
-
UserStorageProviderResource
public UserStorageProviderResource(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
-
-
Method Details
-
getErrorCode
-
getSimpleName
@GET @Path("{id}/name") @Produces("application/json") public Map<String,String> getSimpleName(@PathParam("id") String id) Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328- Parameters:
id-- Returns:
-
syncUsers
@POST @Path("{id}/sync") @Produces("application/json") public SynchronizationResult syncUsers(@PathParam("id") String id, @QueryParam("action") String action) Trigger sync of users Action can be "triggerFullSync" or "triggerChangedUsersSync"- Parameters:
id-action-- Returns:
-
removeImportedUsers
@POST @Path("{id}/remove-imported-users") public void removeImportedUsers(@PathParam("id") String id) Remove imported users- Parameters:
id-
-
unlinkUsers
Unlink imported users from a storage provider- Parameters:
id-
-
syncMapperData
@POST @Path("{parentId}/mappers/{id}/sync") @Produces("application/json") public SynchronizationResult syncMapperData(@PathParam("parentId") String parentId, @PathParam("id") String mapperId, @QueryParam("direction") String direction) Trigger sync of mapper data related to ldap mapper (roles, groups, ...) direction is "fedToKeycloak" or "keycloakToFed"- Returns:
-