---
title: "Login as an API-only user"
url: "https://blog.beyondthecloud.dev/tips/login-as-an-api-only-user"
category: "Admin & Setup"
tags: "sfdx"
published: "2024-01-02"
---

# Login as an API-only user

1. Open Visual Studio Code 2. Press Ctrl + Shift + P > Select SFDX: Authorize an Org 3. Select the appropriate login URL and Alias, when a browser opens a new tab, then enter credentials…

### LOGIN AS API USER

How can you normally use Salesforce but with Salesforce API-only user?

1. Open Visual Studio Code 2. Press Ctrl + Shift + P > Select SFDX: Authorize an Org 3. Select the appropriate login URL and Alias, when a browser opens a new tab, then enter credentials for API Only User 4. Once completed click on the “Open Org” button or type one of the below commands

![Login as an API-only user — screenshot 1](https://blog.beyondthecloud.dev/tips/login-as-an-api-only-user/fig-1.webp)

```bash
sfdx force:org:open
sf org open
```

5. Voilà la - you are logged in to Salesforce UI as an API-only user
