---
title: "Get user by name"
method: GET
path: "/inlong/manager/api/user/getByName/{name}"
tags: ["User-Auth-API"]
---

# Get user by name

`GET /inlong/manager/api/user/getByName/{name}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `name` string, required

## Response `200`

OK

- ResponseUserInfo
  - `data` UserInfo
    - `accountType` integer, required: Account type: 0 - manager, 1 - operator
    - `createTime` string, date-time
    - `creator` string: Name of creator
    - `dueDate` string, date-time
    - `encryptVersion` integer: Encryption key version
    - `extParams` string: Extension json info
    - `id` integer: Primary key
    - `modifier` string: Name of modifier
    - `modifyTime` string, date-time
    - `name` string: Username
    - `password` string: User password
    - `privateKey` string: Private key
    - `publicKey` string: Public key
    - `roles` string[]: User roles
    - `secretKey` string: Secret key
    - `status` string: User status, valid or not
    - `tenant` string: Login Tenant
    - `validDays` integer, required: Valid days
    - `version` integer: Version number
  - `errMsg` string
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api.md) - [All operations](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/revisions/41c687f48683?raw)
