Hi there,
I am writing a custom event listener to send out emails when an authorization policy is created, but I don’t think an admin event gets fired when such events occurred. To prove that was the case I had added logging first thing in the event listener to log every admin event coming through. Looking at the Admin Events log table in the admin console, I also only see operation type UPDATE or DELETE for AUTHORIZATION_POLICY.
I looked at keycloak’s source code briefly, isn’t this line supposed to send the CREATE of AUTHORIZATION_POLICY to the event store and also all the listeners?
For the context, we are running Keycloak 21.1.0 in a container and calling the protection endpoint directly. (POST /auth/realms/{realm}/authz/protection/uma-policy?name={policy_name}).