Hi,currently it is hard to figure out what actually happend when processing events, since thereis no explicit information about the actual underlying resource in an event. Currently one has toparse the resourcePath of an AdminEvent to deduce the involved resource.E.g. Creating a user yields:AdminEvent#getOperationType(): CREATEAdminEvent#getResourcePath(): users/edbabe12-528a-42cc-90cc-bbc66ebaa472Assigning a client role to a user yields:AdminEvent#getOperationType(): CREATEAdminEvent#getResourcePath(): users/edbabe12-528a-42cc-90cc-bbc66ebaa472/role-mappings/clients/7f3af5dc-b68b-4bda-b5a3-89b6d827fb1eRemoving a client role from a user yields:AdminEvent#getOperationType(): DELETEAdminEvent#getResourcePath(): users/edbabe12-528a-42cc-90cc-bbc66ebaa472/role-mappings/clients/7f3af5dc-b68b-4bda-b5a3-89b6d827fb1eIt would be helpful if one had more information about the actual use case.How about introducing an AdminEvent#getResourceType() method that returns an enum value for theresource in question, e.g. USER, ROLE, CLIENT, REALM, GROUP, ROLE_ASSIGNMENT, CLIENT_ROLE_ASSIGNMENT, GROUP_ASSIGNMENT, etc.This would make it easier detect what actually happend without having to parse the resourcePath.What do you think?Cheers,Thomas
_______________________________________________
keycloak-dev mailing list
keycloak-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev