This function returns private roles by the selected parameter.
object.LoadPrivateRoles(aParam)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aParam |
In, Required | The object that defines conditions for
loading |
Display the number of the private roles loaded on the basis of the selected parameter and their role names.
Dim aParam
Dim aPrivateRoles, aPrivateRole
Dim aMessage
Dim i
Set aParam = Profile.CreatePrivateRoleLoadParam
aParam.OrgStructureID = Profile.CurrentOrgStructureID
set aPrivateRoles = Profile.LoadPrivateRoles(aParam)
aMessage = "Private Roles Count: " & aPrivateRoles.Count & vbNewLine
for i = 0 to aPrivateRoles.Count - 1
set aPrivateRole = aPrivateRoles.Item(i)
aMessage = aMessage & aPrivateRole.RoleName & vbNewLine
next
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Private Roles can be found in
.