Click or drag to resize

VGRolesInstanceGetRolesForUser Method (NTAccount)

Note: This API is now obsolete.

Gets a list of the roles that a Windows account is in.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
[ObsoleteAttribute("Do not use this method")]
public string[] GetRolesForUser(
	NTAccount account
)

Parameters

account
Type: System.Security.PrincipalNTAccount
The Windows account to return a list of roles for.

Return Value

Type: String
A string array containing the names of all the roles that the specified user is in.
Exceptions
ExceptionCondition
ArgumentExceptionaccount cannot be converted to a valid SID.
ArgumentNullExceptionaccount is null.
SecurityExceptionThe current user does not have enough privileges to use Membership API. The Membership access level of the application must be sufficient to allows this action or the 'Membership Manager' role must be granted to the user by using the Visual Guard console.
See Also