code: def participant_list(args):
      ''' List participants within a container'''
  
      # Case 1: retrieve participants within a named data entity
      if args.entity_type and args.entity:
          # Edge case: caller asked for participant within participant (itself)
          if args.entity_type == 'participant':
              return [ args.entity.strip() ]
          # Otherwise retrieve the container entity
          r = fapi.get_entity(args.project, args.workspace, args.entity_type, args.entity)
          fapi._check_response_code(r, 200)
          participants = r.json()['attributes']["participants"]['items']
          return [ participant['entityName'] for participant in participants ]
  
      # Case 2: retrieve all participants within a workspace
      return __get_entities(args, "participant", page_size=2000f participant_list(args):
      ''' List participants within a container'''
  
      # Case 1: retrieve participants within a named data entity
      if args.entity_type and args.entity:
          # Edge case: caller asked for participant within participant (itself)
          if args.entity_type == 'participant':
              return [ args.entity.strip() ]
          # Otherwise retrieve the container entity
          r = fapi.get_entity(args.project, args.workspace, args.entity_type, args.entity)
          fapi._check_response_code(r, 200)
          participants = r.json()['attributes']["participants"]['items']
          return [ participant['entityName'] for participant in participants ]
  
      # Case 2: retrieve all participants within a workspace
      return __get_entities(args, "participant", page_size=2000)
docs: List participants within a container