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 ......
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 ......