Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050689Openbravo ERP00. Application dictionarypublic2022-10-31 11:532022-11-03 08:24
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
 
Core
No
0050689: Allow import user in different organizations
When using the openbravo API to import users, it is not possible to import users in an organization other than "*" because an error appears when trying to add the user role.

EDL Error: "Error while importing an item: Entity ADUserRoles may only have instances with organization *"
URL: http://localhost:8080/openbravo/ws/org.openbravo.api.ImportService/User [^]
Method: POST
Body: [
  {
    "client": "Agapes",
    "organization": "FLUNCH - France",
    "name": "Eduardo Becerra",
    "username": "19492",
    "firstname": "Eduardo",
    "lastname": "Becerra",
    "password": "123",
    "isActive": "true",
    "roles": [
      {
        "role": "Hôtesse de caisse 194",
        "active": true
      }
    ]
  }
]
No tags attached.
depends on backport 0050714PR22Q4.1 closed ebecerra Openbravo ERP Allow import user in different organizations 
causes defect 0051028pi closed ranjith_qualiantech_com Retail Modules Export User API - Mapping Broken 
Issue History
2022-10-31 11:53ebecerraNew Issue
2022-10-31 11:53ebecerraAssigned To => Triage Platform Base
2022-10-31 11:53ebecerraModules => Core
2022-10-31 11:53ebecerraTriggers an Emergency Pack => No
2022-10-31 11:53ebecerraAssigned ToTriage Platform Base => ebecerra
2022-10-31 11:53ebecerraStatusnew => scheduled
2022-10-31 12:05hgbotNote Added: 0142754
2022-10-31 15:03hgbotResolutionopen => fixed
2022-10-31 15:03hgbotStatusscheduled => closed
2022-10-31 15:03hgbotNote Added: 0142764
2022-10-31 15:03hgbotNote Added: 0142765
2022-11-03 08:23guilleaerStatusclosed => new
2022-11-03 08:23guilleaerResolutionfixed => open
2022-11-03 08:23guilleaerStatusnew => scheduled
2022-11-03 08:24guilleaerStatusscheduled => resolved
2022-11-03 08:24guilleaerFixed in SCM revision => 88903ac5c94205168d78a8ab7bb9c4d5cbba4b02
2022-11-03 08:24guilleaerResolutionopen => fixed
2022-11-03 08:24guilleaerStatusresolved => closed
2022-11-29 10:16nicola_uvaRelationship addedcauses 0051028

Notes
(0142754)
hgbot   
2022-10-31 12:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/97 [^]
(0142764)
hgbot   
2022-10-31 15:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 88903ac5c94205168d78a8ab7bb9c4d5cbba4b02
Author: Eduardo Becerra <eduardo.becerra@openbravo.com>
Date: 31-10-2022 12:04:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/88903ac5c94205168d78a8ab7bb9c4d5cbba4b02 [^]

Fixes ISSUE-50689: Allow import user in different organizations

---
A src/org/openbravo/api/mappings/user/ImportUserRolesJavaPropertyMappingHandler.java
---
(0142765)
hgbot   
2022-10-31 15:03   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/97 [^]