Cloud Pak for Data

 View Only

Export/import users through cpd-cli cmd from differents version of CP4D

  • 1.  Export/import users through cpd-cli cmd from differents version of CP4D

    Posted Mon April 03, 2023 09:03 AM

    Hi there, i did a CP4D users export from a 4.0.2 and try to import to a 4.6.2 and i got an error (code 400). I have the same error with group command.
    The export i clearly readable in the json and if try to export somebody from both platform, json format looks the same. Procedure from the documentation followed (profile created on both machines). Thanks for help.
    export
    [root@cpd-cli-linux-EE-10.0.3-16]# ./cpd-cli user-mgmt get-user ijpe9110 --profile ${CPD_PROFILE_NAME} --output=json >user-ijpe9110.json
    import
    [root@cpd-cli-linux-EE-12.0.2-39]# ./cpd-cli user-mgmt upsert-user --data user-ijpe9110.json --profile ${CPD_PROFILE_NAME}
    [ERROR] 2023-03-31T15:31:19.169368Z Upsert user - Error adding user UpsertUser - Error adding user Received status code: 400, message: Request validation failed: Parameter (body) failed schema validation
    [ERROR] 2023-03-31T15:31:19.171011Z RunPluginCommand:Execution error: exit status 1



    ------------------------------
    Gilles Geraud IBM
    ------------------------------