Answers.Body: <p>The mapping for CMS user to Civi contact is the <code>UFMatch</code> entity.</p>
  <p>You can use APIv4 Explorer to view and change these.  If you have one that is wrong, just delete the corresponding UFMatch.  When the user logins in next time a new match will be created based on the CMS email address.</p>
  <p>If you have multiple Civi contacts with the same email address you might need to create/modify a UFMatch but often just deleting the existing one is sufficient.</p>
  <p><a href="https://i.sstatic.net/Qy4nD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Qy4nD.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-10T14:20:55.717Z
Answers.LastActivityDate: 2023-01-10T14:20:55.717Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>Merging the two civi records should give you the ability to have the CMS user transferred from A to B.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-10T20:59:33.067Z
Answers.LastActivityDate: 2023-01-10T20:59:33.067Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>If you have a contact with a linked CMS user, sometimes you want to un-link them and re-link the CMS user to another contact.</p>
  <p>The way I've figured out to do this without having to directly change anything in the database is to create a duplicate contact for the contact you want to un-link, merge this contact with the original contact as the duplicate (moving everything to the new contact except the CMS user), then doing Synchronize Users to Contacts and finally merging the newly created contact with the contact you want the CMS user to be linked to. But that's messy. Is there a better way?</p>
  
Tags: <user-account><cms-integration>
Title: How to un-link a CMS user from a contact (and re-link to another contact)?
ThreadText: # How to un-link a CMS user from a contact (and re-link to another contact)?
  
  (Asked by: username_0 on 2023-01-10)
  
  If you have a contact with a linked CMS user, sometimes you want to un-link them and re-link the CMS user to another contact.
  
  The way I've figured out to do this without having to directly change anything in the database is to create a duplicate contact for the contact you want to un-link, merge this contact with the original contact as the duplicate (moving everything to the new contact except the CMS user), then doing Synchronize Users to Contacts and finally merging the newly created contact with the contact you want the CMS user to be linked to. But that's messy. Is there a better way?
  
  **Tags:** user-account, cms-integration
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2023-01-10. Score: 4 | Accepted answer
  
  The mapping for CMS user to Civi contact is the `UFMatch` entity.
  
  You can use APIv4 Explorer to view and change these. If you have one that is wrong, just delete the corresponding UFMatch. When the user logins in next time a new match will be created based on the CMS email address.
  
  If you have multiple Civi contacts with the same email address you might need to create/modify a UFMatch but often just deleting the existing one is sufficient.
  
  [![enter image description here](https://i.sstatic.net/Qy4nD.png)](https://i.sstatic.net/Qy4nD.png)
  
  
  ---
  
  ### Answer by username_2 on 2023-01-10. Score: 0
  
  Merging the two civi records should give you the ability to have the CMS user transferred from A to B.
  
  
  ---
  
  