UserGroupNameList (NotesSession - JavaScript)

Read-only. The groups to which the current user belongs.

Defined in

NotesSession

Syntax

getUserGroupNameList() : java.util.Vector

Usage

The vector members are of type NotesName.

The "groups" include the hierarchical parents of the current effective user name and the alternate user name, if available. For Mary Smith/Department One/Acme, for example, the groups include */Department One/Acme and */Acme.

The groups include those to which the user name belongs in the Domino® Directory or Personal Address Book where the program is running.

Examples

This computed field displays the group names for the current user.
var groups = session.getUserGroupNameList();
if (groups.size == 0) {
	return "No user groups"
} 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 out;
}