---
title: "Load roles by name filter (deprecated)"
method: GET
path: "/api/role/loadbyname/{params}"
tags: ["Roles"]
deprecated: true
---

# Load roles by name filter (deprecated)

`GET /api/role/loadbyname/{params}`

> **Deprecated.**

Returns a filtered role tree structure where leaf nodes contain the specified name. Used for role filtering in admin UI. This endpoint is deprecated.

## Path parameters

- `params` string, required

## Response `200`

Filtered roles loaded successfully

- object — Filtered role tree structure with identifier, label, and items containing matching roles

## Other responses

- `401` — Unauthorized - backend user authentication required
- `500` — Internal server error

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
