Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050714Openbravo ERP00. Application dictionarypublic2022-10-31 11:532022-11-03 08:52
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
PR22Q4.1 
Core
No
0050714: 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.
blocks defect 0050689 closed ebecerra Allow import user in different organizations 
Issue History
2022-11-03 08:23guilleaerTypedefect => backport
2022-11-03 08:23guilleaerTarget Version => PR22Q4.1
2022-11-03 08:48hgbotNote Added: 0142851
2022-11-03 08:52hgbotResolutionopen => fixed
2022-11-03 08:52hgbotStatusscheduled => closed
2022-11-03 08:52hgbotNote Added: 0142852
2022-11-03 08:52hgbotNote Added: 0142853

Notes
(0142851)
hgbot   
2022-11-03 08:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/99 [^]
(0142852)
hgbot   
2022-11-03 08:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: d99df32333eb4ae7825eef2ca5d453fc3926f6e5
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 03-11-2022 08:48:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/d99df32333eb4ae7825eef2ca5d453fc3926f6e5 [^]

fixed ISSUE-50714: Allow import user in different organizations

---
A src/org/openbravo/api/mappings/user/ImportUserRolesJavaPropertyMappingHandler.java
---
(0142853)
hgbot   
2022-11-03 08:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/99 [^]