Welcome to Stack Overflow. Please take the tour to learn how Stack Overflow works and read How to Ask on how to improve the quality of your question. Then check the help center to see which questions are on-topic on this site. Please see: Why is “Is it possible to…” a poorly worded question?. Please show your attempts you have tried and the problems/error messages you get from your attempts. — Progman43 secs ago
If it is about architecture, you may want to take a look at Software Engineering. From what I read, however (without knowing the exact use case), it sound like you may want to have two realms, which keycloak supports. — Turing8511 secs ago