---
title: "Bulk User Actions"
method: POST
path: "/api/identity/{team_key}/users/bulk-actions"
tags: ["identity"]
---

# Bulk User Actions

`POST /api/identity/{team_key}/users/bulk-actions`

## Request

- Base URL: `https://api.superit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.superit.ai/api/identity/{team_key}/users/bulk-actions`
- Auth: HTTP bearer

Queue an async bulk action against selected users. Admin only.

## Path parameters

- `team_key` string, required

## Request body

- union
  - BulkTagUserActionRequest
    - `userKeys` string[], required
    - `action` 'add_tags' | 'remove_tags', required
    - `tags` string[], required
  - BulkChangeRoleUserActionRequest
    - `userKeys` string[], required
    - `action` 'change_role', required
    - `role` 'admin' | 'engineer' | 'user' | 'system' | 'inactive', required: Supported membership roles.
  - BulkPlainUserActionRequest
    - `userKeys` string[], required
    - `action` 'export_users' | 'export_invite_links' | 'link_m365' | 'link_psa' | 'delete' | 'password_reset' | 'send_invite', required

## Response `200`

Successful Response

- BulkUserJobResponse: Response for bulk-action create — only returns the job key.
  - `jobKey` string, required

## Other responses

- `400`: Invalid input
- `401`: Not authenticated
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `409`: Conflict
- `422`: Validation Error

---

[API](https://skmtc.dev/superit/apis/super-it-api.md) - [All operations](https://skmtc.dev/superit/apis/super-it-api/llms.txt) - [OpenAPI document](https://skmtc.dev/superit/apis/super-it-api/revisions/4944d556c2bb?raw)
