I’d like to get a list of all projects in a group in a Fiji script (jython).
After establish the gateway the groups the user is a member is listed and the sector context is set to one of those
user=gateway.getLoggedInUser() groups = user.getGroups() group = group[ichoice] # select a group to list ctx = SecurityContext( group.getId() )
After this the browseFacilty is used to list the projects:
from omero.gateway.facility import BrowseFacility browse = gateway.getFacility(BrowseFacility) users_projects = browse.getProjects(ctx) # just the logged in users projects u308_projects = browse.getProjects(ctx, Long(308)) # just userID=308 projects
It seems the way to get the list all projects is the iterate over the user Ids. However I can’t seem to get information of the members of the group. The GroupData returns None for the experimenter information
group.getExperiments() # = None groupgetMembersOnly() # = None
Is there another way to list all projects in a group or is there something I need to do with the SecutoryContext inorder to list group members?