Share via


SingleSignOnRoleProvider.GetRolesForUser Method (String)

 

Returns a list of the user groups, if the provider finds an authenticated SingleSignOnIdentity object on the user context. Otherwise, the appropriate exception is thrown. This method is invoked at runtime.

Namespace:   System.Web.Security.SingleSignOn
Assembly:  System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)

Syntax

public override string[] GetRolesForUser(
    string username
)
public:
virtual array<String^>^ GetRolesForUser(
    String^ username
) override
override GetRolesForUser : 
        username:string -> string[]
Public Overrides Function GetRolesForUser (
    username As String
) As String()

Parameters

  • username
    Type: System.String

    The username parameter must match the Name on the HTTP user context.

Return Value

Type: System.String[]

Returns a list of the user groups and the window groups associated with the username identity.

See Also

SingleSignOnRoleProvider Class
System.Web.Security.SingleSignOn Namespace

Return to top