## Uses of Interface
org.keycloak.models.UserModel

- Packages that use UserModel
  Package | Description
  --- | ---
  org.keycloak.account |
  org.keycloak.account.freemarker |
  org.keycloak.account.freemarker.model |
  org.keycloak.audit |
  org.keycloak.authentication |
  org.keycloak.authentication.model |
  org.keycloak.email |
  org.keycloak.email.freemarker |
  org.keycloak.login |
  org.keycloak.login.freemarker |
  org.keycloak.login.freemarker.model |
  org.keycloak.models |
  org.keycloak.models.jpa |
  org.keycloak.models.mongo.keycloak.adapters |
  org.keycloak.models.mongo.utils |
  org.keycloak.models.utils |
  org.keycloak.services.managers |
  org.keycloak.services.resources.admin |
  org.keycloak.services.resources.flows |

- - ### Uses of UserModel in org.keycloak.account

    Methods in org.keycloak.account with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `AccountProvider` | AccountProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.account.freemarker

    Methods in org.keycloak.account.freemarker with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `AccountProvider` | FreeMarkerAccountProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.account.freemarker.model

    Constructors in org.keycloak.account.freemarker.model with parameters of type UserModel
    Constructor and Description
    `AccountBean(UserModel user)`
    `AccountSocialBean(RealmModel realm, UserModel user, URI baseUri)`
    `TotpBean(UserModel user, URI baseUri)`

  - ### Uses of UserModel in org.keycloak.audit

    Methods in org.keycloak.audit with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `Audit` | Audit.`user(UserModel user)`

  - ### Uses of UserModel in org.keycloak.authentication

    Methods in org.keycloak.authentication with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | AuthenticationProviderManager.`updatePassword(UserModel user, String password)`
    `AuthProviderStatus` | AuthenticationProviderManager.`validatePassword(UserModel user, String password)`

  - ### Uses of UserModel in org.keycloak.authentication.model

    Methods in org.keycloak.authentication.model with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `protected AuthUser` | AbstractModelAuthenticationProvider.`createAuthenticatedUserInstance(UserModel user)`

  - ### Uses of UserModel in org.keycloak.email

    Methods in org.keycloak.email with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `EmailProvider` | EmailProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.email.freemarker

    Methods in org.keycloak.email.freemarker with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `EmailProvider` | FreeMarkerEmailProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.login

    Methods in org.keycloak.login with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `LoginFormsProvider` | LoginFormsProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.login.freemarker

    Methods in org.keycloak.login.freemarker with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `FreeMarkerLoginFormsProvider` | FreeMarkerLoginFormsProvider.`setUser(UserModel user)`

  - ### Uses of UserModel in org.keycloak.login.freemarker.model

    Constructors in org.keycloak.login.freemarker.model with parameters of type UserModel
    Constructor and Description
    `ProfileBean(UserModel user)`
    `TotpBean(RealmModel realm, UserModel user, URI baseUri)`

  - ### Uses of UserModel in org.keycloak.models

    Methods in org.keycloak.models that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `UserModel` | RealmModel.`addUser(String username)`
    `UserModel` | RealmModel.`addUser(String id, String username)`
    `UserModel` | UserSessionModel.`getUser()`
    `UserModel` | RealmModel.`getUser(String name)`
    `UserModel` | RealmModel.`getUserByEmail(String email)`
    `UserModel` | RealmModel.`getUserById(String name)`
    `UserModel` | RealmModel.`getUserBySocialLink(SocialLinkModel socialLink)`

    Methods in org.keycloak.models that return types with arguments of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserModel>` | RealmModel.`getUsers()`
    `List<UserModel>` | RealmModel.`searchForUser(String search)`
    `List<UserModel>` | RealmModel.`searchForUserByAttributes(Map<String,String> attributes)`

    Methods in org.keycloak.models with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RealmModel.`addSocialLink(UserModel user, SocialLinkModel socialLink)`
    `UserSessionModel` | RealmModel.`createUserSession(UserModel user, String ipAddress)`
    `void` | RoleMapperModel.`deleteRoleMapping(UserModel user, RoleModel role)`
    `Set<RoleModel>` | ApplicationModel.`getApplicationRoleMappings(UserModel user)`
    `AuthenticationLinkModel` | RealmModel.`getAuthenticationLink(UserModel user)`
    `List<UserCredentialValueModel>` | RealmModel.`getCredentialsDirectly(UserModel user)`
    `Set<RoleModel>` | RealmModel.`getRealmRoleMappings(UserModel user)`
    `Set<RoleModel>` | RoleMapperModel.`getRoleMappings(UserModel user)`
    `SocialLinkModel` | RealmModel.`getSocialLink(UserModel user, String socialProvider)`
    `Set<SocialLinkModel>` | RealmModel.`getSocialLinks(UserModel user)`
    `List<UserSessionModel>` | RealmModel.`getUserSessions(UserModel user)`
    `void` | RoleMapperModel.`grantRole(UserModel user, RoleModel role)`
    `boolean` | RoleMapperModel.`hasRole(UserModel user, RoleModel role)`
    `boolean` | RealmModel.`removeSocialLink(UserModel user, String socialProvider)`
    `void` | RealmModel.`removeUserSessions(UserModel user)`
    `void` | RealmModel.`setAuthenticationLink(UserModel user, AuthenticationLinkModel authenticationLink)`
    `void` | UserSessionModel.`setUser(UserModel user)`
    `void` | RealmModel.`updateCredential(UserModel user, UserCredentialModel cred)`
    `void` | RealmModel.`updateCredentialDirectly(UserModel user, UserCredentialValueModel cred)`
    `boolean` | RealmModel.`validatePassword(UserModel user, String password)`
    `boolean` | RealmModel.`validateTOTP(UserModel user, String password, String token)`

  - ### Uses of UserModel in org.keycloak.models.jpa

    Classes in org.keycloak.models.jpa that implement UserModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `UserAdapter`

    Methods in org.keycloak.models.jpa that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `UserModel` | RealmAdapter.`addUser(String username)`
    `UserModel` | RealmAdapter.`addUser(String id, String username)`
    `UserModel` | UserSessionAdapter.`getUser()`
    `UserModel` | RealmAdapter.`getUser(String name)`
    `UserModel` | RealmAdapter.`getUserByEmail(String email)`
    `UserModel` | RealmAdapter.`getUserById(String id)`
    `UserModel` | RealmAdapter.`getUserBySocialLink(SocialLinkModel socialLink)`

    Methods in org.keycloak.models.jpa that return types with arguments of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserModel>` | RealmAdapter.`getUsers()`
    `List<UserModel>` | RealmAdapter.`searchForUser(String search)`
    `List<UserModel>` | RealmAdapter.`searchForUserByAttributes(Map<String,String> attributes)`

    Methods in org.keycloak.models.jpa with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RealmAdapter.`addSocialLink(UserModel user, SocialLinkModel socialLink)`
    `UserSessionModel` | RealmAdapter.`createUserSession(UserModel user, String ipAddress)`
    `void` | RealmAdapter.`deleteRoleMapping(UserModel user, RoleModel role)`
    `Set<RoleModel>` | ApplicationAdapter.`getApplicationRoleMappings(UserModel user)`
    `AuthenticationLinkModel` | RealmAdapter.`getAuthenticationLink(UserModel user)`
    `List<UserCredentialValueModel>` | RealmAdapter.`getCredentialsDirectly(UserModel user)`
    `Set<RoleModel>` | RealmAdapter.`getRealmRoleMappings(UserModel user)`
    `Set<RoleModel>` | RealmAdapter.`getRoleMappings(UserModel user)`
    `SocialLinkModel` | RealmAdapter.`getSocialLink(UserModel user, String socialProvider)`
    `Set<SocialLinkModel>` | RealmAdapter.`getSocialLinks(UserModel user)`
    `List<UserSessionModel>` | RealmAdapter.`getUserSessions(UserModel user)`
    `void` | RealmAdapter.`grantRole(UserModel user, RoleModel role)`
    `boolean` | RealmAdapter.`hasRole(UserModel user, RoleModel role)`
    `boolean` | RealmAdapter.`removeSocialLink(UserModel user, String socialProvider)`
    `void` | RealmAdapter.`removeUserSessions(UserModel user)`
    `void` | RealmAdapter.`setAuthenticationLink(UserModel user, AuthenticationLinkModel authenticationLink)`
    `void` | UserSessionAdapter.`setUser(UserModel user)`
    `void` | RealmAdapter.`updateCredential(UserModel user, UserCredentialModel cred)`
    `void` | RealmAdapter.`updateCredentialDirectly(UserModel user, UserCredentialValueModel credModel)`
    `boolean` | RealmAdapter.`validatePassword(UserModel user, String password)`
    `boolean` | RealmAdapter.`validateTOTP(UserModel user, String password, String token)`

  - ### Uses of UserModel in org.keycloak.models.mongo.keycloak.adapters

    Methods in org.keycloak.models.mongo.keycloak.adapters that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `UserModel` | UserSessionAdapter.`getUser()`
    `UserModel` | RealmAdapter.`getUserByEmail(String email)`
    `UserModel` | RealmAdapter.`getUserById(String id)`
    `UserModel` | RealmAdapter.`getUserBySocialLink(SocialLinkModel socialLink)`

    Methods in org.keycloak.models.mongo.keycloak.adapters that return types with arguments of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `protected List<UserModel>` | RealmAdapter.`convertUserEntities(List<MongoUserEntity> userEntities)`
    `List<UserModel>` | RealmAdapter.`getUsers()`
    `List<UserModel>` | RealmAdapter.`searchForUser(String search)`
    `List<UserModel>` | RealmAdapter.`searchForUserByAttributes(Map<String,String> attributes)`

    Methods in org.keycloak.models.mongo.keycloak.adapters with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RealmAdapter.`addSocialLink(UserModel user, SocialLinkModel socialLink)`
    `UserSessionModel` | RealmAdapter.`createUserSession(UserModel user, String ipAddress)`
    `void` | RealmAdapter.`deleteRoleMapping(UserModel user, RoleModel role)`
    `Set<RoleModel>` | ApplicationAdapter.`getApplicationRoleMappings(UserModel user)`
    `AuthenticationLinkModel` | RealmAdapter.`getAuthenticationLink(UserModel user)`
    `List<UserCredentialValueModel>` | RealmAdapter.`getCredentialsDirectly(UserModel user)`
    `Set<RoleModel>` | RealmAdapter.`getRealmRoleMappings(UserModel user)`
    `Set<RoleModel>` | RealmAdapter.`getRoleMappings(UserModel user)`
    `SocialLinkModel` | RealmAdapter.`getSocialLink(UserModel user, String socialProvider)`
    `Set<SocialLinkModel>` | RealmAdapter.`getSocialLinks(UserModel user)`
    `List<UserSessionModel>` | RealmAdapter.`getUserSessions(UserModel user)`
    `void` | RealmAdapter.`grantRole(UserModel user, RoleModel role)`
    `boolean` | RealmAdapter.`hasRole(UserModel user, RoleModel role)`
    `boolean` | RealmAdapter.`removeSocialLink(UserModel user, String socialProvider)`
    `void` | RealmAdapter.`removeUserSessions(UserModel user)`
    `void` | RealmAdapter.`setAuthenticationLink(UserModel user, AuthenticationLinkModel authenticationLink)`
    `void` | UserSessionAdapter.`setUser(UserModel user)`
    `void` | RealmAdapter.`updateCredential(UserModel user, UserCredentialModel cred)`
    `void` | RealmAdapter.`updateCredentialDirectly(UserModel user, UserCredentialValueModel credModel)`
    `boolean` | RealmAdapter.`validatePassword(UserModel user, String password)`
    `boolean` | RealmAdapter.`validateTOTP(UserModel user, String password, String token)`

  - ### Uses of UserModel in org.keycloak.models.mongo.utils

    Methods in org.keycloak.models.mongo.utils with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `static List<MongoRoleEntity>` | MongoModelUtils.`getAllRolesOfUser(UserModel user, MongoStoreInvocationContext invContext)`

  - ### Uses of UserModel in org.keycloak.models.utils

    Methods in org.keycloak.models.utils that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `static UserModel` | KeycloakModelUtils.`findUserByNameOrEmail(RealmModel realm, String username)` Try to find user by given username.

  - ### Uses of UserModel in org.keycloak.services.managers

    Fields in org.keycloak.services.managers declared as UserModel
    Modifier and Type | Field and Description
    --- | ---
    `protected UserModel` | AccessCodeEntry.`user`

    Methods in org.keycloak.services.managers that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `UserModel` | RealmManager.`createUser(RealmModel newRealm, UserRepresentation userRep)`
    `UserModel` | AuthenticationManager.AuthResult.`getUser()`
    `UserModel` | Auth.`getUser()`
    `UserModel` | AccessCodeEntry.`getUser()`

    Methods in org.keycloak.services.managers that return types with arguments of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserModel>` | RealmManager.`searchUsers(String searchString, RealmModel realmModel)` Query users based on a search string: "Bill Burke" first and last name "bburke@redhat.com" email "Burke" lastname or username

    Methods in org.keycloak.services.managers with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `AccessCodeEntry` | TokenManager.`createAccessCode(String scopeParam, String state, String redirect, RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `AccessToken` | TokenManager.`createClientAccessToken(String scopeParam, RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `AccessToken` | TokenManager.`createClientAccessToken(String scopeParam, RealmModel realm, ClientModel client, UserModel user, UserSessionModel session, List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested)`
    `AccessToken` | AuthenticationManager.`createIdentityToken(RealmModel realm, UserModel user, UserSessionModel session)`
    `void` | AuthenticationManager.`createLoginCookie(RealmModel realm, UserModel user, UserSessionModel session, javax.ws.rs.core.UriInfo uriInfo, boolean rememberMe)`
    `TokenManager.AccessTokenResponseBuilder` | TokenManager.AccessTokenResponseBuilder.`generateAccessToken(String scopeParam, ClientModel client, UserModel user, UserSessionModel session)`
    `UserStats` | ResourceAdminManager.`getUserStats(URI requestUri, RealmModel realm, ApplicationModel application, UserModel user)`
    `UserStats` | ResourceAdminManager.`getUserStats(URI requestUri, RealmModel realm, ApplicationModel application, UserModel user, org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor client)`
    `void` | TokenManager.`initClaims(IDToken token, ClientModel model, UserModel user)`
    `protected IDToken` | TokenManager.`initIDToken(RealmModel realm, ClientModel claimer, UserModel client, UserModel user)`
    `protected AccessToken` | TokenManager.`initToken(RealmModel realm, ClientModel client, UserModel user, UserSessionModel session)`
    `void` | AccessCodeEntry.`setUser(UserModel user)`
    `static UserRepresentation` | ModelToRepresentation.`toRepresentation(UserModel user)`

    Constructors in org.keycloak.services.managers with parameters of type UserModel
    Constructor and Description
    `Auth(RealmModel realm, AccessToken token, UserModel user, ClientModel client, boolean cookie)`
    `AuthenticationManager.AuthResult(UserModel user, UserSessionModel session, AccessToken token)`

  - ### Uses of UserModel in org.keycloak.services.resources.admin

    Methods in org.keycloak.services.resources.admin that return UserModel
    Modifier and Type | Method and Description
    --- | ---
    `UserModel` | AdminAuth.`getUser()`

    Methods in org.keycloak.services.resources.admin with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `protected List<RoleRepresentation>` | UsersResource.`getAvailableRoles(UserModel user, Set<RoleModel> available)`

    Constructors in org.keycloak.services.resources.admin with parameters of type UserModel
    Constructor and Description
    `AdminAuth(RealmModel realm, AccessToken token, UserModel user, ClientModel client)`

  - ### Uses of UserModel in org.keycloak.services.resources.flows

    Methods in org.keycloak.services.resources.flows with parameters of type UserModel
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | OAuthFlows.`processAccessCode(String scopeParam, String state, String redirect, ClientModel client, UserModel user, UserSessionModel session, String username, boolean rememberMe, String authMethod, Audit audit)`

Copyright © 2014. All Rights Reserved.