Table of contents
TOC
Collapse the table of content
Expand the table of content

SecurityExtensions.AddUserToGroup Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Adds a user to a group

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void AddUserToGroup(this Web web, Group group, User user)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web to operate against

group

  Type: Microsoft.SharePoint.Client.Group
  Group object representing the group

user

  Type: Microsoft.SharePoint.Client.User
  User object representing the user

Return Value

Type: void

See also

© 2018 Microsoft