Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129736

patchUserAccount method in headless-user-admin API doesn't change customFields value

    Details

      Description

      When using patchUserAccount method inside headless-user-admin API customField doesn't get changed.

      Steps to reproduce:

      1. Create a custom field for user with name dni and type String.
      2. Create a new user user1 and set custom field dni to "123456789-A"
      3. Generate a patch request inside postman with below url:
      http://localhost:8080/o/headless-admin-user/v1.0/user-accounts/${user1_id}

      and body:

      {
      "customFields": [
              {
                  "customValue": {
                      "data": "234567891-B"
                  },
                  "dataType": "Text",
                  "name": "dni"
              }
          ]
      }
      

      Expected result:

      dni field is set to "234567891-B"

      Current result:

      dni field is not updated and its value remains as "123456789-A"

       

        Attachments

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            jorge.garcia Jorge García Jiménez
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Jorge García Jiménez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              22 weeks, 5 days ago

                Packages

                Version Package
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X
                7.4.0 CE GA1 DXP 7,4
                Master