Tag Info

New answers tagged

0

Yes it is possible,make sure to break the inheritance(should have unique permissions). SPRoleAssignment roleassignment_group = new SPRoleAssignment(group or user); SPRoleDefinition roleDefinition = web.RoleDefinitions.GetByType(SPRoleType.Contributor); roleassignment_group.RoleDefinitionBindings.Add(roleDefinition); //Here we are checking if inheriting ...


1

The answer to this problem is solved by retrieving the site collection administrator. private static void AddManagerToList(SPSite site, string listTitle) { try { var web = site.OpenWeb(); var list = web.Lists.TryGetList(listTitle); if (list != null) { ...


0

By default each folder or SharePoint element (site, list, library etc..) will inherit permissions from its parent even if the parent broke the permissions from its own parent. So Level 2 will keep inherting permissions from Level 1, so you don't need to do any extra work for it. There is nothing wrong going in this approach. You might also consider document ...


0

Your Level 2 sub folders will automatically inherit from your Level 1 folder. It is up to you if you want to break the permission inheritance at each Level 2 subfolder. That is also possible. However, my general recommendation to clients is not to establish folder level permissions since it is very difficult to manage with the out-of-the-box interfaces in ...



Top 50 recent answers are included