getParticipantIds function

Gets a list of participant IDs