---
title: "Get distinct assigned tenants of roles"
method: GET
path: "/resources/roles/v2/distinct-tenants"
tags: ["Account roles"]
---

# Get distinct assigned tenants of roles

`GET /resources/roles/v2/distinct-tenants`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/roles/v2/distinct-tenants`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/roles/v2/distinct-tenants/get.ts> (a function with typed inputs; its response is checked against the schema)

This route returns all assigned tenant ids from roles for vendor.

## Headers

- `frontegg-tenant-id` string

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
