SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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

in item updating event of list, i want to update the same item which being updating but i don't want to change and update the fields of the item but the permissions of it.
so i can't use AfterProperties property of the item because it just act for the fields.
i wrote the common code for this i mean i got the item and changed the permissions of it and then Disabled Event Firing and updated the item, but it won't update and sharepoint gives me the Conflict error(the one close your browser and blah blah stuff).
so there is any way to do this?

share|improve this question
up vote 0 down vote accepted

For such a request i would go for ItemUpdated. Before the actual coding when registering the handler make sure you put it on Synchronous (this will prevent your actions to be spawn on 2ndary threads) - Stefan Gobner explains it pretty detailed

Also, of course make use of the Disable Event firing (be aware that methods have slightly changed in SharePoint 2010 - see here Also, do not forget to use AllowUnsafeUpdates=TRUE on your SPWeb.

Beyond this, see here for an example actually changing permissions in ItemUpdated

share|improve this answer
thanks for reply.indeed i considered all the tips you said already except instead of using ItemUpdating do use ItemUpdated. – Jalali Shakib May 19 '12 at 9:38

Your Answer


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.