Click or drag to resize

DataContextUserIsInGroup(SecurityPrincipal, String) Method

Determines if user is in a specific group or list of groups (comma separated).

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public bool UserIsInGroup(
	SecurityPrincipal securityPrincipal,
	string group
)
View Source

Parameters

securityPrincipal  SecurityPrincipal
Security principal that provides role-based security.
group  String
Group or comma separated list of groups.

Return Value

Boolean
true if user is in group(s); otherwise, false.
Remarks
Set to * for any group.
See Also