# Harness User API

**Canonical:** https://apis.io/apis/harness/harness-user-api/  
**Provider:** Harness — https://apis.io/providers/harness/  
**Base URL:** https://app.harness.io  
**Documentation:** https://apidocs.harness.io

Harness User API is one of 488 APIs that [Harness](https://apis.io/providers/harness/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include User. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, and rate-limit docs.

This contains APIs related to User as defined in Harness

## Operations (20)

| Method | Path | Summary |
|---|---|---|
| PUT | `/ng/api/user/add-user-to-groups/{userId}` | Add user to user groups |
| POST | `/ng/api/user/users` | Add user(s) to scope |
| PUT | `/ng/api/user/password` | Change user password |
| GET | `/ng/api/user/last-admin` | Check if user is last admin |
| PUT | `/ng/api/user/disable-two-factor-auth` | Disable two factor authentication |
| POST | `/ng/api/user/endImpersonation/{userId}` | end impersonation session for user |
| GET | `/ng/api/user/aggregate/{userId}` | Get detailed user information |
| POST | `/ng/api/user/aggregate` | Get list of users |
| GET | `/ng/api/user/two-factor-auth/{authMechanism}` | Gets Two Factor Auth Settings |
| GET | `/ng/api/user/currentUser` | Get Current User Info |
| POST | `/ng/api/user/batch` | Get users list |
| POST | `/ng/api/user/impersonate/{userId}` | impersonate User |
| PUT | `/ng/api/user/{userId}` | Update User |
| DELETE | `/ng/api/user/{userId}` | Remove user from scope |
| GET | `/ng/api/user/reset-two-factor-auth/{userId}` | Reset two factor authorization |
| PUT | `/ng/api/user/unlock-user/{userId}` | Unlock user |
| PUT | `/ng/api/user/enable-two-factor-auth` | Enable two factor authentication |
| PUT | `/ng/api/user` | Update User |
| POST | `/code/api/v1/user/favorite` | Create favorite |
| DELETE | `/code/api/v1/user/favorite/{resource_id}` | Delete favorite |

## Machine-readable artifacts (10)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-user-api-openapi.yml
- **Documentation** — https://apidocs.harness.io
- **APIReference** — https://apidocs.harness.io
- **GettingStarted** — https://developer.harness.io/docs/platform/automation/api/api-quickstart/
- **Authentication** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/authentication/harness-authentication.yml
- **OAuthScopes** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/scopes/harness-scopes.yml
- **ErrorCatalog** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/errors/harness-error-codes.yml
- **Conventions** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/conventions/harness-conventions.yml
- **Idempotency** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/conventions/harness-conventions.yml
- **RateLimits** — https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/rate-limits/harness-rate-limits.yml

## Other Harness APIs (12)

- [Harness Continuous Integration API](https://apis.io/apis/harness/ci-api/)
- [Harness Continuous Delivery and GitOps API](https://apis.io/apis/harness/cd-api/)
- [Harness Feature Management and Experimentation API](https://apis.io/apis/harness/feature-flags-api/)
- [Harness Cloud Cost Management API](https://apis.io/apis/harness/ccm-api/)
- [Harness Chaos Engineering API](https://apis.io/apis/harness/chaos-api/)
- [Harness Security Testing Orchestration API](https://apis.io/apis/harness/sto-api/)
- [Harness Internal Developer Portal API](https://apis.io/apis/harness/idp-api/)
- [Harness Code Repository API](https://apis.io/apis/harness/code-repo-api/)
- [Harness Service Reliability Management API](https://apis.io/apis/harness/srm-api/)
- [Harness Infrastructure as Code Management API](https://apis.io/apis/harness/iacm-api/)
- [Harness Supply Chain Security API](https://apis.io/apis/harness/ssca-api/)
- [Harness Software Engineering Insights API](https://apis.io/apis/harness/sei-api/)

## Tags

User

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/harness/harness-user-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/harness/.
