0

Search HumanUser by Email_id

 

status = sg.find("HumanUser",[["Email","is","some@gmail.com"]])

Error

Fault: API read() HumanUser.Email doesn't exist:

 

Anyone knows that how to search user by email_id

1 comment

  • 1
    Avatar
    Lee Hollingworth

    Use a lowercase 'e' for email. 

    status = sg.find("HumanUser",[["email","is","some@gmail.com"]])

    print status

    >> [{'type': 'HumanUser', 'id': 97}]

    To get a full list of fields on HumanUser try this:

    sorted(sg.schema_read()["HumanUser"].keys())
     

     

Please sign in to leave a comment.