Add a new group to SharePoint Site Collection; Add Role Definition and Assignment


/ Published in: C#
Save to your folder(s)

An important thing to keep in mind about adding groups is that you add groups to site collections and not webs. To do this, we access the SiteGroups collection rather than the Groups collection.

In order to assign permissions, each group you add needs a role definition (i.e. Read, Contribute, Design, or Full Control). It's best practice to assign role definitions to a group and assign users to the group, rather than assign definitions to individual users.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.