Click or drag to resize
AuthenticationHelperGetUserADRoles Method
Gets the user roles from AD.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static string[] GetUserADRoles(
	string userName,
	RoleProvider roleProvider = null
)

Parameters

userName
Type: SystemString
User name
roleProvider (Optional)
Type: System.Web.SecurityRoleProvider
Instance of RoleProvider to use. If not specified the role provider specified in .config file is used.

Return Value

Type: String
See Also