Find person by custom field


I want to import user from a different python application. I created a custom field “myapplication_id” and want to check if a specific ID exists.

How can I do this?

My idea is:

  1. Try to find the user with the custom “myapplication_id”
  2. If the id does not exist => create a new person
  3. If the id exist => update fields

Is this possible?

You might find the following wiki useful

Feel free to create a new topic if you still face challenges.