---
title: "Thêm người dùng hoặc đổi vai trò"
method: POST
path: "/ir/{symbol}/users"
tags: ["IRPortal"]
---

# Thêm người dùng hoặc đổi vai trò

`POST /ir/{symbol}/users`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/ir/{symbol}/users`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/ir/:symbol/users/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `symbol` string, required

## Request body

- FireAntApiModelsIRIRCompanyUserChangeRequest: Thêm hoặc đổi vai trò người dùng
  - `userName` string, required: Tên đăng nhập
  - `role` 1 | 2 | 3 | 4 | 5: Vai trò (1 = Owner, 2 = Admin, 3 = Editor, 4 = Analyst, 5 = Viewer)
  - `status` 0 | 1 | 2: Trạng thái (0 = Invited, 1 = Active, 2 = Disabled)

## Response `200`

OK

- object

## Changes

- **2026-09-25** `a481789cd81c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/ir/:symbol/users/post.md)

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
