Try Now
More in this section

Forums / Developing with Sitefinity / User role changing

User role changing

2 posts, 0 answered
  1. Bachar Zeidan
    Bachar Zeidan avatar
    67 posts
    01 Jul 2010
    23 Sep 2010
    Link to this post
    Hello telerik Team,
    I 'm searching to catch the event when a User change his role, example:
    when a user from the back-end change his role from administrator to another role, I need to catch this event from the .asax file.
    I know that i can catch the event when a user delete or update a content but I need do do the same thing when a user change his role from back_end or update its profile.
    Any Idea?
    thank you very much.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    23 Sep 2010
    Link to this post
    Hello Bachar Zeidan,

    Inside Sitefinity/Admin/cmsAdmin/Users.aspx.cs you can subscribe for manageUsers_UpdatedUser which will be called when you open a user for editing and change his /hers role.

    The user's role could be changed from a DropDownList template which is located above the GridView control. You have to find the control and subscribe for SelectedIndexChanged event

    protected override void OnPreRender(EventArgs e)
          var c = ((Telerik.Security.WebControls.ManageUsers.ListContainer)manageUsers.Controls[0]).FindControl("actionsList") as DropDownList;

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered