SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any event when user changes item's permission ? I tried to catch SPListItemUpdating event for a necessary list, but it didn't work. Or can I attach to Permission list to handle SPListItemUpdating event ?

share|improve this question
up vote 1 down vote accepted

There is a similar question here which asks the same.

As mentioned in the post, maybe you can take another approach, i.e. build an alternate way for users to change the permissions of an item. When the user applies the permissions (using the UI you've built), you can trigger an event, or start a workflow.

share|improve this answer

I'm afraid that is not possible.

Maybe you can take another approach: build an alternate way for users to change the permissions of an item. When the user applies the permissions (using the UI you've built), you can trigger an event, or start a workflow.

Going further, you could replace the default "Manage permissions" option in the ECB and replace it with a link to your custom permissions management UI.

More information:

Item level Permissions

Hope it helped :)

share|improve this answer

hi you can check this out, I dont know if its what your looking for:

http://nickgrattan.wordpress.com/2007/11/27/auditing-permission-changes/

hope it helps!

share|improve this answer
    
Although your answer may answer the question, links to blog posts often break, where as we won't be going anywhere for a long while. It's always a good idea to extract the useful parts for research if not all of it incase that happens (If it's not too long!) Please read the FAQ[1] for more information [1]:sharepoint.stackexchange.com/faq – Hugh Wood Dec 2 '12 at 3:25

You can catch permissions changing just in SharePoint 2013 (I did it in On Premise version) :

public class MyClass_PermissionEventReceiver : SPSecurityEventReceiver
{
    public override void RoleAssignmentAdded(SPSecurityEventProperties properties)
    {
        base.RoleAssignmentAdded(properties);
    }

    public override void RoleAssignmentAdding(SPSecurityEventProperties properties)
    {
        base.RoleAssignmentAdding(properties);
    }
}

Important moment that you need add your event receivers for Site or Web. But if you add it for web, it will catch permission changing on list or item levels too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.