Comments (2)
Handling user groups during migration sounds like a great idea!
That said, I think we might need some additional configuration for group mapping (similar to how it's currently handled for roles) - that is, a group map and a toggle to migrate unmapped groups.
That will also resolve the problem of "what to do if a group doesn't exist" - we should add it if the toggle is ON and ignore it if it's OFF (and actually ignore any groups not present in the group map in that case).
Adding the new config options means we should probably also update the screenshot in the Optional - additional configuration
section of the README.md.
Last but not least, this will most likely require updating the User DTO to include a groups
field of some sort - this field should not be mandatory and should be documented as such in README.md.
If you're up for it, that would be a great contribution to the project :)
from keycloak-user-migration.
Sounds great!
I updated issue with requirements for this feature, this the local implementation I did:
if (legacyUser.getGroups() != null) {
legacyUser.getGroups().forEach(group ->
ofNullable(realm.getGroupById(group)).ifPresentOrElse(
userModel::joinGroup,
() -> userModel.joinGroup(realm.createGroup(group))
)
);
}
I'll open this PR in the next few days
from keycloak-user-migration.
Related Issues (20)
- Legacy role conversation fields becomes empty after save HOT 1
- Cannot reach api via http in kubernetes HOT 1
- Compatible with Keycloak 22 (JAX-RS)? HOT 10
- Not able to recreate migrated users HOT 1
- Swagger is not working HOT 1
- Error: unable to find valid certification path to requested target HOT 1
- Keycloak X - java.lang.ClassNotFoundException HOT 6
- User data migrated although password validation endpoint (POST) returns response with status NOT 200 HOT 3
- Unsupported class file major version 61 under Java 17 HOT 4
- Turn into Kotlin ? HOT 1
- Keycloak 19 version HOT 4
- Migration error / issues after we updated to Keycloak 18 and later 19 HOT 8
- Keycloak 19+ compatibility notice HOT 1
- Other legacy system examples? HOT 4
- Keycloak 17 (jboss): java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64 HOT 8
- Error in using federation HOT 5
- KC UI fails if migration API isn't running (dev mode) HOT 2
- Provider isn't used when configured on imported realm HOT 2
- doesnt synchronize users HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keycloak-user-migration.