code: def get_by(self, field, value):
          
          if field == 'userName' or field == 'name':
              return self._client.get(self.URI + '/' + value)
          elif field == 'role':
              value = value.replace(" ", "%20")
              return self._client.get(self.URI + '/roles/users/' + value)['members']
          else:
              raise HPOneViewException('Only userName, name and role can be queried for this resource.')
docs: Gets all Users that match the filter.
  
          The search is case-insensitive.
  
          Args:
              field: Field name to filter. Accepted values: 'name', 'userName', 'role'
              value: Value to filter.
  
          Returns:
              list: A list of Users.