Time-based Group Membership #8494
Replies: 3 comments
-
|
This sounds nice. The only problem is that there are many more changes which you may like to schedule. In addition to attributes at relations there could be a SPI and provider implementations which are executed regular processing of entities. Let's just name them "automation". An automation could process entities and delete them based on an "auto_delete" attribute". A deletion automation could process any type of entity (relations as as well as user, groups, roles, etc.) if access to attributes is unified. There could be custom automation implementations which don't modify the entity at all, but create a regular report or send a notification if they find a specific state. |
Beta Was this translation helpful? Give feedback.
-
|
The ability to expire a group membership is a nice addition, but I agree with @jbman that this needs to be a more general concept rather than baked directly onto groups. In addition to what was already mentioned, there are also sessions, etc. that needs to expire and be deleted. At some point we should also consider a separate service that can perform the expiration of entities, rather than have nodes processing requests do this job. For larger deployments it can significantly affect the response time of a given node. With that in mind I would rather see some general expiration service. It can initially just run as a background job as we do today for other "cleanup" jobs. Could be something like ExpirationServiceSPI, that has the ability to add an expiration on any entity, and perform the cleanup (that can be disable/delete/send an email/etc.). |
Beta Was this translation helpful? Give feedback.
-
|
I agree that it would be good to have a more general concept.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Keycloak supports organising users into groups. However, users remain in the group forever unless they get manually removed by the group administrator. We would like to introduce Temporary or Time-based Group Membership. This feature can be used when you need to temporarily grant a user some authority based on group membership. After the specified time has elapsed, the user will be automatically removed from the group without administrator intervention. Note that this feature is also supported in Active Directory.
Our team create a jira issue for this feature. We would like to make the implementation for this useful feature.
Do you have any comment/ enhancement in design proposal?
Beta Was this translation helpful? Give feedback.
All reactions