1

I want to execute some code when the users/groups with access to a web changes (addition and removal of users/groups). What are my options?

1 Answer 1

3

If you are using SP 2013, you can SPSecurityEventReceiver. A good resource on this is: http://www.timferro.com/wordpress/archives/737.

Excerpts:

[This Server Side and Remote Event Receiver] Provides methods [in 5 main categories: 1. Group Events, 2. User Events, 3. Inheritance Events, 4. Role Assignment Events, and 5. Role Definition Events] to trap events [Adding/Added/Updating/Updated/Deleting/Deleted/Breaking/Broken/Reset/Resetting] that are raised [at the Site Collection or Site level] for security.

2
  • Cool that is exactly what I am looking for. Will this work as remote eventreceiver too?
    – mhbuur
    Commented Sep 21, 2015 at 10:26
  • I think so. Haven't tried it but as mentioned in the link I posted, I assume it will work.
    – Akhoy
    Commented Sep 21, 2015 at 10:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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