Title: SF Custom Object =&gt; WordPress Users
Last modified: August 16, 2021

---

# SF Custom Object => WordPress Users

 *  Resolved [jaysitcc](https://wordpress.org/support/users/jaysitcc/)
 * (@jaysitcc)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sf-custom-object-wordpress-users/)
 * Hello,
 * Goal: WordPress creates users based on field values in SF records.
 * When I attempt to map a Salesforce Custom Object to users, my log notifies me
   that the data was pulled to WordPress successfully but I cannot see the new users
   on the users tab in the admin panel. I created a custom post type and copied 
   the Object Sync data exactly, and I am able to create posts using the data without
   any issue.
 * Would someone be able to point me in the right direction? Is there something 
   I need to change in order for WP to create users, or am I trying to fit a square
   peg in a round hole?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sf-custom-object-wordpress-users/#post-14772182)
 * When you see a successful log notification, it should read something like this:“
   Success: Upsert Salesforce [Salesforce object/id] (WordPress user with ID of [
   WordPress id]).” If so, I would recommend that you check what is happening with
   the user ID mentioned. For example, if the ID was 151853, there should be a record
   you can view at [https://yoursite/wp-admin/user-edit.php?user_id=151853](https://yoursite/wp-admin/user-edit.php?user_id=151853).
 * If such a record doesn’t exist, there’s clearly an error happening that the plugin
   is not seeing. If you have access to your site’s database, you might also try
   searching the wp_users table for that ID.
 * If there’s no record in your database of the ID that the log entry reports, I
   think it’s possible that there might be PHP or MySQL errors the plugin was unable
   to detect, and you should check into your server logs.
 *  Thread Starter [jaysitcc](https://wordpress.org/support/users/jaysitcc/)
 * (@jaysitcc)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sf-custom-object-wordpress-users/#post-14772924)
 * Thank you for your prompt response, Jonathan.
 * LOG message on create:
 * Success: Update WordPress user with ID of [WP ID] (Salesforce [objectName] Id
   of [Salesforce
    ID)
 * 1. I’m not receiving a ‘create’ log like I am for the corresponding post, just
   a log with update user #ID.
 * 2. Searching the ID returns an invalid user ID error.
 * 3. No error logs in wp/error-logs or Cpanel=>metrics=>errors (It’s very likely
   I’m looking in the wrong place)
 * 4. phpMyAdmin table does not create a wpny_users entry. But it is creating a 
   wpny_object_sync_sf_object_map row for the POSTS using the same ID it references
   in the logs for the user Update.
 * Thank you for your time.
 *  Plugin Author [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * (@jonathanstegall)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/sf-custom-object-wordpress-users/#post-14776344)
 * It does seem like the plugin is confused and it perceives that a user has been
   created when it hasn’t, and so it then perceives that it has been able to update
   the user.
 * I’m inclined to think it’s giving you a false positive. It would be nice to find
   out why it isn’t throwing an error. There’s not much I can say unless you can
   find out why the false positive is happening, so I’ll suggest a few possibilities:
 * 1. Make sure debug mode is turned on in the plugin settings. It will create a
   lot of additional log entries, but maybe it’ll add something helpful.
    2. Reduce
   the fields on the fieldmap to the essentials (I think user_login is the only 
   field that is absolutely required). 3. Uncheck any prematch fields, in case that
   is causing an issue. 4. Make sure the triggers are set correctly on the fieldmap(
   you should at least have Salesforce Create checked)
 * If none of this works, you might want to check the function that the plugin uses
   to create new WordPress users and do some manual error logging of your own. This
   might be time consuming, but it will let you figure out what step is failing,
   if there is one. Here are the relevant lines of code on GitHub: [https://github.com/MinnPost/object-sync-for-salesforce/blob/master/classes/class-object-sync-sf-wordpress.php#L926-L1013](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/classes/class-object-sync-sf-wordpress.php#L926-L1013)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘SF Custom Object => WordPress Users’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/object-sync-for-salesforce.svg)
 * [Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/object-sync-for-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/object-sync-for-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/object-sync-for-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/object-sync-for-salesforce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jonathan Stegall](https://wordpress.org/support/users/jonathanstegall/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/sf-custom-object-wordpress-users/#post-14776344)
 * Status: resolved