In order to log membership changes, you could write your own Membership providers.
In case you only need extra logging, just inherit from the Umbraco providers (for frontend Members: MembersMembershipProvider, MembersRoleProvider) and add some logging to the methods that you are interested in.
-
For example, logging for adding a member to a group (role) can be done by overriding the method AddUsersToRoles:
public class MyRoleProvider : MembersRoleProvider
{
public override void AddUsersToRoles(string[] usernames, string[] roleNames)
{
// TODO: Add your logging here ...
// Use base implementation
base.AddUsersToRoles(usernames, roleNames);
}
}
In your web.config set your new providers, for example:
Membership Auditing
Hi All
I need to add an audit log for Membership Changes
Does umbraco keep a audit trail for membership changes ?
Looks like something more people are interested in ...
There is a feature request for adding AddGroup/RemoveGroup events to Umbraco (MemberService - reimplement AddGroup / RemoveGroup Events )
In order to log membership changes, you could write your own Membership providers.
In case you only need extra logging, just inherit from the Umbraco providers (for frontend Members: MembersMembershipProvider, MembersRoleProvider) and add some logging to the methods that you are interested in.
-
For example, logging for adding a member to a group (role) can be done by overriding the method AddUsersToRoles:
In your web.config set your new providers, for example:
Is this something that could help you audit membership changes?
is working on a reply...