You need to make sure the new ID of the user in the user table matches the foreign key in the usermeta.
Also a word of caution regarding your comment on Active Directory integration. For public facing websites be extremely careful, you could inadvertantly expose you domain controller information to the web. You might want to consider additional security precautions around the login and admin pages, for example limiting access to certain IP addresses or dual authentication.
Related Posts:
- How to customize wp_signon()
- Displaying different in-page content to cliente/admin
- Unique password to access a section site
- view and update form only for registered users
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- WordPress password as plain text in email
- How to allow an user role to create a new user under a role which lower than his level only?
- How to programatically change username (user_login)?
- Display user registration date
- Whats the best way to share user data across multiple WordPress websites?
- Allowing users to edit only their page and nobody else’s
- WordPress auto login after registration not working
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- Hide Admin Menu for Specific User ID who has administrator Role
- Problem with Hebrew characters in username
- Remove email verification when new user register
- How to set up User email verification after Signup?
- How to display custom user meta from registration in backend?
- Allowing an email as the username?
- Check if specific username is logged in
- Force users to complete their profile after they register? How to
- How do i auto approve new user?
- Can I hook into the invite user process to verify their email address is from a certain domain?
- How to get user ID during registration and add it to a custom table
- Front end user meta options for users
- Custom user profile, registration, login page with theme
- Limit content by user registration date
- What is the best way to avoid spammers registering to my blog?
- Set default page for user account in admin
- New user notification doesn’t include activation link
- WordPress to use Drupal users’ credentials
- Create not-activated user in code, wordpress
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- Plugin for limiting user registration based on ip with expiry period?
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- Restricted registrations or removing the ability to edit your password/email
- Can user login details be used for other applications?
- Users managed to register on website with no register button?
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- Add value in user table when user is created
- wordpress user roles are not working
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- Reset Password policy
- How can I attach a user to another user with user meta
- How can I allow an User to publish only 5 posts per month?
- Register user when after filling contact form
- Creating user without username and password
- WordPress registration without wp-login.php and wp-admin folder, is it possible?
- Where are $current_user->allcaps set?
- Check for valid email after user inactivity?
- How to set custom avatar for users?
- How to add registration date and last login date to user list page
- Send clear password via mail
- How to programmatically read the plan text password when user register?
- Can I Create a Second Admin Level User Role?
- Custom registration and pending approval
- Automatic Website user password generation
- Customising “user ids” and add to ‘user’ panel in the admin area
- How to hide some users to unlogged users [closed]
- Make new users automatically approved
- One Click Access To Users Account In WordPress?
- Using my own user table
- Edit text of WordPress “Register” button
- define two login page url
- WordPress user role with create user capability?
- User with same Mail but a different additional info(like domain)
- set automatically email address for WordPress users
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- Can I add a unique code for each user based on the location?
- Perform multiple actions after wp_insert_user()
- Update user role for expired membership
- Auto approve new users if their username is included in a predefined list
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Insert user register into my own user table instead of wp own user
- How to use url formatter with integer
- Custom registration fields not appearing in user info
- Custom User Role: Can Edit Own Page, Cannot Create New
- How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?
- Registration page as homepage
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Restrict Access to the User Profile
- post acces for guests / unregistered users only
- New User ID not working in custom function with user_register hook
- Username has been exposed
- Set user role on registration so can upload file to own media library area
- Retrieve New user’s ID
- Integrating Facebook Registration (and Login) on a WordPress page
- Limit user access to installing/configuring a plugin?
- file upload user profile
- how can i inform other users about new user registration? [closed]
- Add custom input field in new user page
- determine active user browser at the same time