Hello,
this BeanShell-Script could help you:
import de.espirit.firstspirit.access.Connection;
import de.espirit.firstspirit.access.project.Project;
Connection connection = context.getConnection();
Project[] projects = connection.getProjects();
Please note that connection.getProjects() only returns those projects that the current user has access to!
Best regards,
Tim