---
title: "List Sub-accounts"
method: GET
path: "/api/v2/UserProfile"
tags: ["UserProfile"]
---

# List Sub-accounts

`GET /api/v2/UserProfile`

List all sub-accounts that are managed by the `YourAccount` account by invoking the following endpoint:

  > `GET https://YourAccount.lacework.net/api/v2/UserProfile` 

 For example, if you specify the `IT20.MyCompany` organization account in `YourAccount`, this lists all sub-accounts of the `IT20` account.

  Here is an example invocation:

  > `GET https://IT20.MyCompany.lacework.net/api/v2/UserProfile`

  The response reports details about organization accounts and non-organization accounts in addition to authorization and privilege details.

## Headers

- `Authorization` string, required
- `Content-Type` string, required
- `Org-Access` boolean
- `Account-Name` string

## Response `200`

List of Sub-accounts

- object
  - `data` UserProfileResponseSchema[]
    - `username` string, required — The sub-account's username.
    - `orgAccount` boolean, required — Your organization account. An organization contains the organization account (the one used to enroll the organization) and possibly multiple sub-accounts.
    - `url` string — Your FortiCNAPP URL that is used for the organization and all sub-accounts in the organization.
    - `orgAdmin` boolean — Returns `True` if this member is an organization admin.
    - `orgUser` boolean — Returns `True` if this member is an organization user.
    - `accounts` object[], required — A list of accounts this member can access.
      - `admin` boolean — Returns `True` if this member is an account admin.
      - `accountName` string — The account name this member can access.
      - `custGuid` string — Customer ID.
      - `userGuid` string — User ID.
      - `userEnabled` 0 | 1

## Other responses

- `204` — No Data
- `4XX` — Client Error
- `5XX` — Internal Server Error

---

[API](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation.md) · [All operations](https://skmtc.net/lacework/apis/forticnapp-api-2-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lacework/forticnapp-api-2-0-documentation/revisions/7015f76895f2/schema)
