rename_user

Rename a user.

This function requires GRANT privileges on the @thingsdb scope.

This function generates a change.

Function

rename_user(current_name, new_name)

Arguments

Argument Type Description
current_name str (required) Current user name.
new_name str (required) New name for the user.

Return value

Returns nil when successful.