Multuple Users Per account


I want feature so that I can create multiple users in one account and one user can be in multiple accounts (i.e. account1 and account2). How can this be achieved in Keycloak.
Also if I remove access of particular user from particular account say account1 and user tries to login in that account1, Keycloak Authentication should return me False. But if user tries to login in account 2 it should return true