Precondition runningAs

Dear team,

I have a liquibase user, UserA, to perform my tasks in the database. Now I need to perform some activities as UserB.
For that I am using the precondition, “runningAs” in my changeset. The problem is it says you want to run as UserB but provided the credentials for UserA.
I am trying to pass the password to the changeset via some way but unable to find a working way.

Please help.

The precondition runningAs does not let you run a changeset as a different user than Liquibase is connected to the database as. That is not the intent of the precondition.

runningAs is used to verify that the changeset/changelog is running as the required user.