My resources are events. Each event should be assigned to users with roles (Admin, Manager, Guest). There should always be the same roles available.
Examples:
- User1 can access on event1 as Admin
- User2 can access on event1 as Manager
- User3 is admin on event2 but can't see event1
Now to the actual question:
How can you map this in Keycloak with Policy, Permission and role? Honestly, I have not found a good definition for scopes, maybe someone has a good example of their use.