Forum Discussion
sameburn
OneStream Employee
28 days agoHi DK_OS
It's not too clear what you are trying to achieve based on your code / description?
But the compiler is telling you that you have created a single GroupInfo object e.g for 1 security group, but you are treating it like a collection e.g > 1 security group and attempting to loop through it and retrieve properties related to Member not Group?
Also MessageBox.Show isn't valid in onestream (your second error)
If you want all Groups maybe start with something like this collection
You can then do something like this (please log results as you develop to demystify what you are doing, example below)
Dim objList As List(Of Group) = BRApi.Security.Admin.GetGroups(si)
For Each grp As Group In objList
If grp.Name.StartsWith("QA_") Then
api.LogMessage("Log Group Names that start with QA_", grp.Name)
End If
Next
Hope this helps
Sam
Related Content
- 3 years ago