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

SecurityExtensions.IsUserInGroup Method

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

Checks if a user is member of a group

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

Syntax

public static bool IsUserInGroup(this Web web, String groupName, String userLoginName)

Parameters

web

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

groupName

  Type: System.String
  Name of the group

userLoginName

  Type: System.String
  Loginname of the user

Return Value

Type: bool
True if the user is in the group, false otherwise

See also

© 2018 Microsoft