To clarify, the object model method isn’t a big fat dirty liar, but the documentation certainly is. This blog post is about checking permissions of arbitrary users against SharePoint objects which expose the ISecurableObject (this interface is marked obsolete in 2010 in favour of the new SPSecurableObject class) interface using the overloaded DoesUserHavePermissions method of; SPListItem.DoesUserHavePermissions(SPUser […]
Read moreMixing RunWithElevatedPrivileges and SharePoint List Permissions
Checking user permissions against SharePoint artefacts is straightfordward enough, many types within the object model expose a range of overloaded DoesUserHavePermissions(…) methods, the example below checks that the current user has ViewListItems permissions against a list. This example assumes that you’ve already got a reference to the list to check, SharePoint security trimming means that you may […]
Read moreSharePoint: Security Trim Contents of a Data View Web Part
Security Trimming the Data View Web Part. Security Trim Contents of a Data View Web Part « Rai’s SharePoint Blog.
Read moreSharePoint: Audience Targeting vs. Item Level Security
A great post from Keith Bunge talking about Audience Targeting and Item level Security. SharePoint Audience Targeting vs. Item Level Security – Click Mice, Unclick Mice.
Read moreAd-Hoc or Bulk Testing of Windows Login Credentials
I’m doing a SharePoint deployment right now, I’ve planned out the service accounts I’m going to use, handed off those requirements to the IT department, who responded back that, yep, they’d been done. Call me paranoid but I’m thinking “did all those accounts get created with all the right passwords and user names”, I’m also […]
Read more
March 8, 2012 




Recent Comments