Developer forum

Forum » Development » UserManagement.Notifications.UserSaved

UserManagement.Notifications.UserSaved


Reply
Hi

I've started using the Notification Subscribers that Dynamicweb offers and I got it working easily with a Standard.User.OnExtranetLogin subscriber.

Now I want to create a UserManagement.Notifications.UserSaved subscriber, but I can't seem to make it work.

Regarding our Dynamicweb solution, I am not the one who install new module and the like so I'm not entirely sure that I know the difference between the old and the new user modules. I think that we still use the old user module in our Dynamicweb backend. We have a Users (brugere) module and then there's a Users (extended) module which isn't installed. I know that the data for our users is in the AccessUser table. Does that tell you anything? :-)

My question is this: Does a UserManagement.Notifications.UserSaved subscriber even work with the old user module? And if not, can I use another subscriber to obtain the same goal?

My code is here (I took it largely from the User Management Extensibility PDF that's located under Documentation). I cut away all non-essential code:

    [Subscribe(Dynamicweb.Modules.UserManagement.Notifications.UserSaved)]

    public class UserAdminSubscriber : NotificationSubscriber
    {
        private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        public override void OnNotify(string notification, NotificationArgs baseArgs)
        {
           

            log.Debug("UserAdminSubscriber was executed.");
        }
    }


Replies

 
Nicolai Høeg Pedersen
Reply
UserManagement.Notifications.UserSaved only works with UserManagement - and not with the old. And there is no notification in the old user management.

But it is easy to upgrade - run the upgrade wizard from my page - there should be a big yellow thing telling you about the upgrade possibility.
 
Reply
Ok. No use trying that strategy anymore, then. Good to know!

Unfortunately I can't upgrade it myself. I have to go through the sysadms -- who of course are very busy (you know how it is, I bet).

But I will try punking them to do it, now that we have a specific use for the new module :-)

Thanks for your answer

 

You must be logged in to post in the forum