Reputation: 306
I am new to keycloak, I'm studying the examples and I know how to create and manage resources, but I don't understand how to share them with a group of users.
A little example: user Alice create resource R1, how can i share resource R1 with all the user of group X?
I'm watching the PermissionTicketRepresentation class, but it seems related to a single user?
can i do this? How?
Upvotes: 1
Views: 279
Reputation: 1540
If you have a resource then you should create Permission and apply Policy to it. Permission defines protected resources and policies that should be used. The policy defines actual rules - e.g "user belongs to group" or "user has the role", etc.
Upvotes: 1