Click or drag to resize
UserInfoProviderIsUserInRole Method
Returns true if the user is a member of the role in context of the specified site.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public static bool IsUserInRole(
	string userName,
	string roleName,
	string siteName
)

Parameters

userName
Type: SystemString
User name
roleName
Type: SystemString
Role name
siteName
Type: SystemString
Site name

Return Value

Type: Boolean
Remarks
The check also accounts for membership roles and global roles.
See Also