CLI modify-user with add-mysql returning "A db login with same name already exists"


I am trying to give an existing user access to a newly created database via virtualmin via CLI. This what I am using:

virtualmin modify-user --domain --user existinguser --add-mysql newly_created_dbname

But this is what i get in return: A database login with the same name already exists