org.keycloak.storage.user

## Interface UserBulkUpdateProvider

- All Known Subinterfaces:
    UserCache, UserCache.Streams, UserProvider, UserProvider.Streams
  All Known Implementing Classes:
    JpaUserProvider, MapUserProvider, UserCacheSession, UserStorageManager

      public interface UserBulkUpdateProvider

  This is an optional capability interface that is intended to be implemented by any `UserStorageProvider` that supports bulk operations.
  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `grantToAllUsers(RealmModel realm, RoleModel role)` Grants the given role to all users from particular realm.

- - ### Method Detail

    - #### grantToAllUsers

          void grantToAllUsers(RealmModel realm,
                               RoleModel role)

      Grants the given role to all users from particular realm. The role has to belong to the realm.
      Parameters:
        `realm` - Realm
        `role` - Role to be granted

Copyright © 2021 JBoss by Red Hat. All rights reserved.