How to execute CI tests by specified user credentials

I have a python product, which is working with database; Access to database required legal windows credentials to be available( legal credentials in domain ). How can I execute runner so that It will run with real domain credentials ( local admin is not suit )?