action rudder_update_user { label: "Update user's infos" description: "Rename, change password (pre-hashed or not) and change permission of an user. If a parameter is empty, it will be ignored." provider: rudder method: POST path: "/usermanagement/update/{username}" encoding: json input: { type: "object" properties: { isPreHahed: { type: "boolean" description: "If you want to provide hashed password set this property to `true` otherwise we will hash the plain password and store the hash" enum: [false, true] } password: { type: "string" description: "this password will be hashed for you if the `isPreHashed` is set on false" } role: { type: "array" description: "Defined user's permissions" items: { type: "string" } } username: { type: "string" } } } output: { type: "object" required: ["action", "data", "result"] properties: { action: { type: "string" description: "The id of the action" enum: ["updateUser"] } data: { type: "object" required: ["updatedUser"] properties: { updatedUser: { type: "object" required: ["password", "role", "username"] properties: { password: { type: "string" description: "New password given" } role: { type: "array" description: "defined user's permissions" items: { type: "string" } } username: { type: "string" description: "New Username" } } } } } result: { type: "string" description: "Result of the request" enum: ["success", "error"] } } } }