Hi,
I wrote this following code from help database of Notes:
var groups = session.getUserGroupNameList();
if (groups.size == 0) {
getComponent("MultObs").setValue("Não há nomes na lista");
} else {
var out = "User group names: ";
var iterator = groups.iterator();
var name:NotesName = null;
while (iterator.hasNext()) {
name = iterator.next();
out = out + " " + name.getAbbreviated();
}
return getComponent("MultObs").setValue(out);
}
I was intended to inspect if the online user was a member of groups. This user is myself.
The database is on Domino server.
If I use the Notes Client, this code returns only '*/MyOU1/MyNotesDomain' and '*/MyNotesDomain'.
If I use the web browser, it works perfectly. It returns all groups in which I am a member.
How may I achieve my goal in Notes Client?
Thank you.
Mauro