I'm working on Automation using AzureDevOps and wondering if there is a simple way to have a service user account i.e. account which creds never expires and can access AzureDevOps only via API.
I want to re-use this user credentials in my automation scripts but don't want to have user which can login to though UI.
Is there "Service Account User" concept in AzureDevOps.
P.S.
I know that pipelines provides ability to use OAuth token but what if I want to run automation outside the pipelines.
A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs. Typically, service accounts are used in scenarios such as: Running workloads on virtual machines (VMs).
In Azure DevOps, open the Service connections page from the project settings page. In TFS, open the Services page from the "settings" icon in the top menu bar. Choose + New service connection and select Azure Resource Manager. Choose Service Principal (manual) option and enter the Service Principal details.
Service accounts differ from normal user accounts in multiple ways: They don't have a password and can't be used for browser-based sign-in. They're created and managed as a resource that belongs to a Google Cloud project. In contrast, users are managed in a Cloud Identity or Google Workspace account.
There is no service account you need to create additional user and use PAT token to make automation out side pipelines. If you will use OAuth token to automation in pipeline then you are able to use Service Project Collection Build Service Accounts meaning build service account will be you service user and fot this you do not need PAT but then you need to run automation inside Pipelines. When creating PAT you can specified exact permission needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With