Geeks With Blogs
Fringe SharePoint Continued September 2009 Entries
Giving user access to site with custom permission level
Adding a new user to a site looks like this: public static void AddPrincipalRoleToSite(SPPr... entity, SPRoleType role, SPWeb web) { SPRoleAssignment roleAssignment = new SPRoleAssignment(entity); SPRoleDefinition byType = web.RoleDefinitions.GetByTy... roleAssignment.RoleDefiniti... web.RoleAssignments.Add(rol... } Principle is the parent object to SPUser and SPGroup. Therefore you can use this method and send both user or group in and it will add it to the ......

Posted On Friday, September 4, 2009 5:13 PM

Mission Imposible Part 2 (Quota Solution)
I started a series that I titled Mission Impossible. Read the Introduction if you have not already done so, you can find it here. This Post will cover the quota issue and some ideas I put out for the client to decide. This solution can be approached in two different ways, a passive approach and a pro active approach. Let me describe. Let me describe the problem first. A site collection exists with sub sites. The client wanted a quota set to a 2G limit on each sub site. There are no way that can be ......

Posted On Tuesday, September 1, 2009 11:07 PM

Copyright © juanlarios | Powered by: