Link to home
Create AccountLog in
Avatar of aqibsp82
aqibsp82

asked on

Prevent SP2010 list from adding new Items and Editing existing items.

Hi,
can anyone please tell me if there is a way to prevent SharePoint 2010 list from adding new Items and Editing existing items through program (probably in Schema file of list).
thanks
Avatar of Piotr Strycharz
Piotr Strycharz
Flag of Poland image

I think that the simplest solution is to change list security. Just remove contributor permissions (or change them to read).

The second possibility is:

- go to the advanced list settings
- in "Item-level Permissions" section select "None" in "Create and Edit access".

The latter solution does not work in document library.

 

Item-Level-Permissions.png
Avatar of aqibsp82
aqibsp82

ASKER

Thanks Pstry! but i want to do it programacally....
any idea??
ASKER CERTIFIED SOLUTION
Avatar of Piotr Strycharz
Piotr Strycharz
Flag of Poland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
thanks Pstry,
that helped :)