Inflectra Customer Forums: Change user data mapping (Thread) Hi, I need some advice on the following topic: we use SpiraTest with a synchronisation to Jira. Now the jira-usernames are changed. I can enter them via the web-UI (edit user/data mapping), but this is not a feasible way due to the amount of users to change (>1000). I thought I could use the REST api to do this. But if I do a POST to data-mappings/{data_sync_system_id}/users with the updated values (only the ExternalKey is changed) nothing is changed though I get an http 200 status (checked with the web UI and via a GET to data-mappings/{data_sync_system_id}/users). The documentation also says that the POST is used to Add new user data mapping entries. I want to update them. So what is the preferred way to achieve this? Best regards Stephan en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/integrations/bug-trackers/2766.aspxthreadId=2766Stephan Wacker (stephan.wacker@adesso.de)Change user data mapping Hi, I need some advice on the following topic: we use SpiraTest with a synchronisation to Jira. Now the jira-usernames are changed. I can enter them via the web-UI (edit user/data mapping), but this is not a feasible way due to the amount of users to change (>1000). I thought I could use the REST api to do this. But if I do a POST to data-mappings/{data_sync_system_id}/users with the updated values (only the ExternalKey is changed) nothing is changed though I get an http 200 status (checked with the web UI and via a GET to data-mappings/{data_sync_system_id}/users). The documentation also says that the POST is used to Add new user data mapping entries. I want to update them. So what is the preferred way to achieve this? Best regards Stephan Wed, 15 Mar 2023 07:25:28 -04002023-03-21T07:25:31-04:00/Support/Forum/integrations/bug-trackers/2766.aspxmessageId=6090David J (support1@inflectra.com) Hi Stephan You probably need to use the DELETE API method to first remove the mapping, then POST t Hi Stephan You probably need to use the DELETE API method to first remove the mapping, then POST to add the new mapping (external key). Alternatively, if you are on premise, there is direct access to the data in the TST_DATA_SYNC_USER_MAPPING table Regards David Wed, 15 Mar 2023 07:41:59 -04002023-03-15T07:41:59-04:00/Support/Forum/integrations/bug-trackers/2766.aspx#reply6090messageId=6094Stephan Wacker (stephan.wacker@adesso.de) Hi David, thanks for the hint. The DELETE-method is undocumented. Where can I find the correct ca Hi David, thanks for the hint. The DELETE-method is undocumented. Where can I find the correct call/parameters? Currently I do a DELETE data-mappings/{data_sync_system_id}/users with the body [ { ProjectId: null, InternalId: x, ExternalKey: xyz, Primary: true } ] With this call I get the error Method not allowed. Best regards Stephan Fri, 17 Mar 2023 08:38:18 -04002023-03-17T08:38:18-04:00/Support/Forum/integrations/bug-trackers/2766.aspx#reply6094messageId=6095Stephan Wacker (stephan.wacker@adesso.de) I could also write a selenium script, but thats not a very elegant solution... Regards Stephan I could also write a selenium script, but thats not a very elegant solution... Regards Stephan Tue, 21 Mar 2023 07:25:31 -04002023-03-21T07:25:31-04:00/Support/Forum/integrations/bug-trackers/2766.aspx#reply6095