Skip to main content

Using A360 Cloud.  Trying to figure out how to use the logged in user and get those specific credentials.  I don’t want to hard code a specific locker/credential combination.  I want to pull the credential based on the user logged into the machine.

I have tried using a credential with ‘User Provided’ type and also ‘Standard’ but cannot determine how to obtain the right userID and password from the credentials vault for the logged in user.

You can certainly get the logged-in username through System>>Get Environment Variable, but I don’t see how you could translate that into a credential, as AA forces you to choose a hard-coded credential from the vault through drop-downs. There is no option to concatenate the credential name with a variable.

At best, you’d be able to do an If Statement where you get the logged in username through the environment variable and then assign the value to a credential variable based on that name (see below). Anything beyond about two users and it would become ugly quickly, though.

 

The only other option I see would be storing the credentials in some sort of external vault or db, that could be referenced using the username variable to pull the creds you’re after. Obviously, that route would open up its own can of worms...


Reply