Showing posts with label Sharepoint item level permissions. Show all posts
Showing posts with label Sharepoint item level permissions. Show all posts

Thursday, November 24, 2011

Sample Event Handler to set Permissions

Please note that it is a sample code and should not be used in production environment without some major changes. For example - getting the user name and password of a user with elevated permissions on the list should be from an encrypted config file. Another example for a change is changing the logging to use a trace log.
All that aside, this is still a good working example that shows some interesting things: