---
title: "Search for management users"
method: GET
path: "/v2/partition/{partitionId}/managementuser/search"
tags: ["Management User"]
---

# Search for management users

`GET /v2/partition/{partitionId}/managementuser/search`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/managementuser/search`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/managementuser/search/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to search for management users, in a fuzzy way. You provide a search string and any managementUser within the partition which contains the search string in any field, will be returned in the search results.  The check in case insensitive <br/>Alianza uses this API as a ui filter.

## Path parameters

- `partitionId` string, required

## Query parameters

- `descending` boolean
- `firstResultIndex` integer
- `maxResult` integer
- `searchString` string, required
- `sortColumn` 'firstName' | 'lastName' | 'username', required

## Response `200`

Successful operation

- ManagementUserSearchResponseX
  - `totalRecords` integer
  - `results` ManagementUserX[]
    - `id` string
    - `username` string: users email address
    - `firstName` string
    - `lastName` string
    - `emailAddress` string: just a readonly repetition of the username
    - `mustChangePassword` boolean
    - `languageTag` 'en-US' | 'fr-CA'
    - `partitionId` string: Reference to <a href="#/~schema/PartitionX">PartitionX.id</a>
    - `roles` string[]: A list of roles that the contain the permissions of this managementUser.
    - `groupIds` string[]: Readonly and internal only, the same information is contained in the roles array in a different format

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
