Hello DOJO
Is there a way to retreive the groupname associated to the ID ?
Currently we are able to get the users info and the groups they belong to
foreach (var user in securityInfo.Users)
sr.WriteLine(user.EmailAdress);
and
foreach (var grouplist in user.Groups.ToList())
{
groups = groups + "," + grouplist;
}
it gives something like this
tata.toto@toto.com;11,130,60,147,59
what is the c# code to get the name for each group 11,130,60,147,59
Second question
What could be the method in c# to list the security group and users for each LCA dahboard ?
Hi,
Assuming the securityInfo variable you have is the output of a GetInfoMessage(InfoType.SecurityInfo) request, you should be able to get the name of a group id by using securityInfo.FindGroupNameByID(groupId) or by looking through the entries in the .Groups property.
Hope this helps!
any clue for the Second question ?
Unfortunately, I have no further info for the second question. I'm not even sure you can request the list of LCAs from inside an automation script.
The configuration files are on disk (One configuration file per LCA at C:Skyline DataMinerapplicationsxxxxapp.info.json as far as I can see). However I would not advise to read these files directly or rely on their format.
Hi Wouter
Perfect, works exactly as expected.
Thanks