Tagged Questions
2
votes
1answer
52 views
How do i “Refresh” each site collection's permissions?
My network admin have deactivated a lot of users from the Active Directory, and recreated them using the same username but with a different OU,
Now the SP 2010 does not recognize these users or their ...
0
votes
1answer
139 views
What permissions are required to access SPSite.Usage?
I am using the SPSite.Usage property in the object model to get statistics on the size of a site collection in SharePoint 2010. With my own user account being a farm administrator, site collection ...
0
votes
2answers
2k views
How to add specific SharePoint Group to List permission with c#?
using (SPSite site = (SPSite)properties.Feature.Parent)
{
using (SPWeb web = site.OpenWeb())
{
if (web != null)
{
web.AllowUnsafeUpdates = true;
SPList list = ...
4
votes
2answers
221 views
Efficiently determine if a List is using item level security
How can you efficiently determine if any of the items in a List don't inherit their security from the List?
You could use SPListItem.HasUniqueRoleAssignments but this would require iterating through ...
0
votes
3answers
793 views
SPList.GetItems(query) does not return SPListItems where the permissions are not inherited
I'm using the following code:
protected void TraverseFolder(SPList list, SPFolder folder)
{
SPQuery qry = new SPQuery() { Folder = folder };
SPListItemCollection listFolderItems = ...
1
vote
3answers
521 views
Accessed denied when attempting to permission folder using the Object Model API
I'm attempting to permission a folder using the Object Model API that is created by an ASP.NET page wrapped into a feature. I am able to create and permission the folder for users that are in the ...