Get list of groups user belongs to


public Collection<String> getUserGroupList(String person){
	Collection<String> nameList = null;
	try{
		Database db = Utils.getSession().getCurrentDatabase();
		lotus.notes.addins.DominoServer server = new lotus.notes.addins.DominoServer(db.getServer());
		nameList = server.getNamesList(person);			
	}catch (NotesException e) {
		OpenLogUtil.logErrorEx(e, JSFUtil.getXSPContext().getUrl().toString(), Level.SEVERE, null);
	}
	return nameList;	
}
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...