---
search:
  tags:
    - OrgStructure
    - GET
seo:
  description: >-
    Security: Any user… Reference for the GET
    /v1/warehouses/{warehouseId}/orgstructure/roles/{roleId}/unitids endpoint in
    the Bpanda REST API (experimental).
sidebar:
  label: List all units using a role.
  badge: GET
title: List all units using a role.
type: openapi-operation
---
List all units using a role.
      Get organizational units using this organizational role.
      These are units with a non empty intersection of unit users (responsible, deputy, member)
      with the users of this organizational role.
      In addition return all organizational units having this role
      explicitly assigned.

**Security:** Any user holding a Bpanda licence for the process space.

`GET /v1/warehouses/{warehouseId}/orgstructure/roles/{roleId}/unitids`
