Import : Users : Empty companyId does not set value to NULL

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • None
    • Affects Version/s: 10.87, 10.88
    • Component/s: Import|Export

      Issue Summary

      When importing a user from the template, if companyId is left blank, the value that will be passed on will be blank, instead of null. The same applies to company.

       This causes an issue when using the API to alter a user, as an error message will inform us that companyId and company cannot be empty.

      The behavior is correct when creating the user from the UI, by setting the value to null

      Steps to Reproduce

      1. Create a user from the import template
      2. Leave companyId empty
      3. Optionally, leave company empty as well
      4. Verify the user from a GET call and check companyId field
      5. Create another user from UI and check the same

      Expected Results

      • Per UI behavior, the values should be:
        "companyId": null,
        "company": null,

      Actual Results

      • The value when using import is:
        "company": "",
        "companyId": "",

      Workaround

      • Manually patch the value:
        [
        	{
        	"op": "replace",
                "path": "/companyId",
                "value": null
        	}
        ]
        

            Assignee:
            Kyle Foreman
            Reporter:
            align-connector-bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: