This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jan 8, 2013, 11:31 AM
6 Posts

getUserGroupNameList()

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Xpages getUserGroupNameList Client
  • Replies: 0
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
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal