List of Business Units

Use this API to get a list of business units.

GET/adminui/user-management/v1/business-units?reservedType=BUSINESS_UNIT&userRole={User Role}

The API request and response are in JSON format. Some characters, such as backslash (\) and double quotes (") in passwords or other fields may appear escaped in raw JSON responses. It is recommended to alway as parse responses using standard JSON parser to retrieve the correct values. 

Sample - Get a List of Business UnitsSample - Get a List of Business Units

API request

curl --location --request GET '<qualys_base_url>/adminui/user-management/v1/business-units?reservedType=BUSINESS_UNIT&userRole=READER' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_Token>' \
--data ''

Response

[
    {
        "tagId": 32455595,
        "id": "134931f0-672c-4ddf-a915-b8f304889d37",
        "name": "unit BU",
        "reservedType": "BUSINESS_UNIT",
        "display": {},
        "inScope": true,
        "favorite": false,
        "srcBusinessUnitId": 1776714
    },
    {
        "tagId": 30510988,
        "id": "5a332d34-d9e0-48f9-b42b-bf0ac7a550ca",
        "name": "BU rbac",
        "reservedType": "BUSINESS_UNIT",
        "display": {},
        "inScope": true,
        "favorite": false,
        "srcBusinessUnitId": 1763737
    },
    {
        "tagId": 30509058,
        "id": "d5b061e6-a5ef-4d0f-8301-83665dc5d9e4",
        "name": "Unassigned Business Unit",
        "reservedType": "BUSINESS_UNIT",
        "display": {},
        "inScope": true,
        "favorite": false,
        "srcBusinessUnitId": 0
    }
]