You can use Groovy scripts to change the authorization profile and credentials that will be used for a request.
Where to use
There are several ways to run this script:
As a Groovy Script test step.
As a setup or teardown script on the test case level in functional tests.