1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #Add a sharepoint group using power shell
$web = get-SPWeb "http://int-portail"
$member = $web.AllUsers["monpc\moi"]
# Create custom group
$CustomGroup ="My Custom Group14"
$web.SiteGroups.Add("$CustomGroup", $member, $member,"Utilisez ce groupe pour accorder des droits de contribution pour le site SharePoint ")
# If you don't want to use custom permission, you can directly give existing permission name i.e "Full Control/Contributor/Design/Visitor"
$web.RoleDefinitions["Visitors"] |
Partager