How to create a Dataiku user using python script

ponselvan
ponselvan Registered Posts: 2 ✭✭✭

Hello All,

I am in the process of creating Python code for creating the new user in Dataiku & I would like to have the input sample & output sample as below. can someone help me to create a Dataiku user using python code

Input Jason:

Sample Request JSON Body
-------------------------
{
"accountName": "xxxx",
"accountOwner": "xxxx",
"accountType": "User",
"accountStatus": "Active",
"accessRole": [
{
"roleName": "Admin"
}
]
}
Output Jason:

Sample Response JSON body 1
----------------------------
Response code
200 OK
{
"accountName": "xxxx",
"accountOwner": "xxxx",
"accountType": "User",
"accountStatus": "Active",
"accessRole": [
{
"roleName": "Admin"
}
],
"status": "Success"
"statusMessage": "User account xxx got successfully created"
}

Sample Response body 2
-----------------------
{
"accountName": "xxxx",
"accountOwner": "xxxx",
"status": "Failure",
"statusMessage": "User account 'xxxx' already exists."
}


Operating system used: Red Hat Enterprise Linux Server release 7.9 (Maipo)

Answers

Setup Info
    Tags
      Help me…