0 out of 1 rated this helpful - Rate this topic

SPWeb.IsCurrentUserMemberOfGroup Method

Gets whether the current user is a member of the specified group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public bool IsCurrentUserMemberOfGroup(
	int groupId
)

Parameters

groupId
Type: System.Int32
The group identifier (ID).

Return Value

Type: System.Boolean
true if the user is a member of the group; otherwise, false.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ