I would suggest to use AEM OOTB features for User and Groups Management.As in Approach 1 - if you only want to update YAML file for log details then you can do with the help of Sling filter.when you save any user details with OOTB UI then there is a POST call with url -/home/users/<user-id>.userprop...