[GH-ISSUE #2407] [HaloPSA Extension] Auto-Mapping Duplicates Mappings #1223

Closed
opened 2026-03-02 13:42:30 +03:00 by kerem · 2 comments
Owner

Originally created by @martinyelland on GitHub (May 3, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2407

Description

When the Auto-Mapping Feature is used, it creates the mappings in the table - but it does not first check if the mapping already exists.

Expected Outcome:
CIPP ignores the existing mappings where identical
CIPP updates an existing mapping, where a tenant is assigned to different Client Name.
CIPP does not duplicate the existing mappings, or allow duplicates to be committed.

Actual Outcome:
New Mappings are added
All existing mappings are duplicated in the UI and the Table when saved.

Steps to Reproduce:

  • Configure the Extension
  • With an empty mapping list, click 'Automap HaloPSA Clients'
  • Mappings are created
  • Click Save Mappings
  • Remove one or two of the mappings, leaving at least one mapping.
  • Click Save
  • Click 'Automap HaloPSA Clients'
  • (Optionally) Click Save

Environment data

Sponsored instance 
Front end version number: 5.6.2
Back end version number: 5.6.3
Tried Tenant Cache Clear: false 
Tried Token Cache Clear: false
Originally created by @martinyelland on GitHub (May 3, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2407 ### Description When the Auto-Mapping Feature is used, it creates the mappings in the table - but it does not first check if the mapping already exists. **Expected Outcome:** CIPP ignores the existing mappings where identical CIPP updates an existing mapping, where a tenant is assigned to different Client Name. CIPP does not duplicate the existing mappings, or allow duplicates to be committed. **Actual Outcome:** New Mappings are added All existing mappings are duplicated in the UI and the Table when saved. **Steps to Reproduce:** - Configure the Extension - With an empty mapping list, click 'Automap HaloPSA Clients' - Mappings are created - Click Save Mappings - Remove one or two of the mappings, leaving at least one mapping. - Click Save - Click 'Automap HaloPSA Clients' - (Optionally) Click Save ### Environment data ```PowerShell Sponsored instance Front end version number: 5.6.2 Back end version number: 5.6.3 Tried Tenant Cache Clear: false Tried Token Cache Clear: false ```
kerem 2026-03-02 13:42:30 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (May 3, 2024):

Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug."

Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".

<!-- gh-comment-id:2093393041 --> @github-actions[bot] commented on GitHub (May 3, 2024): Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/ If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug." Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@KelvinTegelaar commented on GitHub (May 3, 2024):

combing this with your feature request and reopening that one :)

<!-- gh-comment-id:2093394604 --> @KelvinTegelaar commented on GitHub (May 3, 2024): combing this with your feature request and reopening that one :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1223
No description provided.