EsbGetGroupList() gets the list of users who are members of a group (or the list of groups to which a user belongs).
EsbGetGroupList (hCtx, GrpName, pItems)
ByVal hCtx As Long
ByVal GrpName As String
pItems As Integer
| hCtx | Essbase VB API context handle. |
| GrpName | Group or user name. |
| pItems | Address of variable to receive Items of user names. |
Declare Function EsbGetGroupList Lib "ESBAPIW" (ByVal hCtx As Long, ByVal GroupName As String, Items As Integer) As Long
Sub ESB_GetGroupList ()
Dim Items As Integer
Dim Group As String
Dim GroupName As String * ESB_USERNAMELEN
Dim sts As Long
Group = "User Group"
'***************
' Get Group List
'***************
sts = EsbGetGroupList (hCtx, Group, Items)
For n = 1 To Items
'**************************
' Get next User Name String
' from the list
'**************************
sts = EsbGetNextItem (hCtx,
ESB_GROUPNAME_TYPE, ByVal GroupName)
Next
End Sub
EsbAddToGroup()