public List < OrganizationWithSpaces > getSharedOrganizations ( int userId ) { return getResourceFactory ( ) . getApiResource ( "/org/shared/" + userId ) . get ( new GenericType < List < OrganizationWithSpaces > > ( ) { } ) ; }
Returns the organizations and spaces that the logged in user shares with the specified user . The organizations and spaces will be returned sorted by name .