How to Check Which Account Is being Used in Azure Devops

I’m not sure if my question is appropriate for this forum but here goes. If during the deployment of code to Production the Powershell script fails with an error message saying “Access is denied” in Azure Devops, how do I check which account is being used to deploy the code?