def METHOD_NAME(obj, formdata):
    try:
        formdata['orcid'] = UserIdentity.query.filter_by(
            id_user=obj.id_user, method='orcid').one().id
    except NoResultFound:
        formdata['orcid'] = None
    return formdata