EnumRoles

Returns the names of all Financial Management security roles.

Syntax

<HFMwSecurity>.EnumRoles pvarabstrRoleNames

Argument

Description

pvarabstrRoleNames

Returns an array of the role names.

Input/output argument.

Example

The following example prints the role names to the browser.

Sub printSecurityRoles()
Dim cHFMSecurity, vaRoleNames
Set cHFMSecurity = Server.CreateObject("Hyperion.HFMwSecurity")
' cHFMSession is a previously set HFMwSession object
cHFMSecurity.SetWebSession cHFMSession
cHFMSecurity.EnumRoles vaRoleNames
For i = 0 to uBound(vaRoleNames)
   Response.Write "<p>" & vaRoleNames(i) & "</p>"
Next
End Sub