Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Anton Oosthuizen 206 posts 486 karma points
    May 24, 2016 @ 10:37
    Anton Oosthuizen

    Hi All

    I need to add an audit log for Membership Changes

    Does umbraco keep a audit trail for membership changes ?

  • Micha Somers 134 posts 597 karma points
    May 24, 2016 @ 12:12
    Micha Somers

    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 )

  • Micha Somers 134 posts 597 karma points
    May 25, 2016 @ 12:49
    Micha Somers

    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:

    <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
        <clear />
        <add name="UmbracoRoleProvider" type="Umbraco.Extensions.MembershipProviders.MyRoleProvider" />

    Is this something that could help you audit membership changes?

Please Sign in or register to post replies

Write your reply to: