Hi,
I am trying to read cube level roles via DSO and Visual
Basic 6.0. At the very basic level, I wish to retrieve
the permissions of each role in a given cube.
I have looked at all of the examples on MSDN but they all
seem to "set" permissions, not "retrieve" them.
The code below I would think would loop through each role
in the cube and retrieve the permissions but the
permissions are coming up blank...
------------------------------------------------------
Dim dsoServer As DSO.Server
Dim dsoDatabase As DSO.Database
Dim dsoCube As DSO.Cube
Dim dsoRole As DSO.Role
'Connect to server
Set dsoServer = New DSO.Server
dsoServer.Connect (txtServerName.Text)
'Find database and cube
Set dsoDatabase = dsoServer.MDStores(<"database">)
Set dsoCube = dsoDatabase.MDStores(<"cube">)
For Each dsoRole In dsoCube.Roles
Text1 = Text1 & dsoRole.Name & ":" &
dsoRole.Permissions(dsoRole.Name) & vbCrLf
Next
-------------------------------------------------------
....thank you in advance for any help.
Derek.
I am trying to read cube level roles via DSO and Visual
Basic 6.0. At the very basic level, I wish to retrieve
the permissions of each role in a given cube.
I have looked at all of the examples on MSDN but they all
seem to "set" permissions, not "retrieve" them.
The code below I would think would loop through each role
in the cube and retrieve the permissions but the
permissions are coming up blank...
------------------------------------------------------
Dim dsoServer As DSO.Server
Dim dsoDatabase As DSO.Database
Dim dsoCube As DSO.Cube
Dim dsoRole As DSO.Role
'Connect to server
Set dsoServer = New DSO.Server
dsoServer.Connect (txtServerName.Text)
'Find database and cube
Set dsoDatabase = dsoServer.MDStores(<"database">)
Set dsoCube = dsoDatabase.MDStores(<"cube">)
For Each dsoRole In dsoCube.Roles
Text1 = Text1 & dsoRole.Name & ":" &
dsoRole.Permissions(dsoRole.Name) & vbCrLf
Next
-------------------------------------------------------
....thank you in advance for any help.
Derek.