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, Int32 groupId, String userLoginName)

Parameters

web

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

groupId

  Type: System.Int32
  Id of the group

userLoginName

  Type: System.String
  Login name of the user

Return Value

Type: void

See also

© 2018 Microsoft