Need variable to consume account username

I need to capture an custom account username as a variable, so that OI can use it in deployment script. Kindly help with the query.

Hi @Sharjil!

Thanks for reaching out, and for the great question.

Sadly, we don’t explicitly present the username used as a deployment time variable, just the name of the configured account in Octopus.

You could perhaps do an API call to retrieve the username from the ID (https://YOUR_OCTOPUS/api/Spaces-X/accounts/Accounts-XXX), or depending on your deployment process and what account type you’re attempting to use, there might be a system-level lookup you can do to determine what account is being used (getting the current username for an SSH connection with whoami etc.)

Ok, I will try that out. Thanks

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.