Keycloak user managed resource sharing

We are planning on using keycloak as IAM management for our services.
From our service we will creating several user managed resources and the owner for these resources can share this with other users.
We are looking for a way to have callback to the service set up when the owner shares the resource with another users and from this callback several other actions will be triggered.
Thank you