> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/p/palo-alto-networks-prisma-access-insights.md).

# Palo Alto Networks Prisma Access Insights

Prisma Access Insights reports on Prisma Access usage. OctoXLabs reads the GlobalProtect mobile users who connected in the last 7 or 30 days and adds them as users.

## Use cases

* List GlobalProtect users that OctoXLabs has collected.

```
Adapters = palo-alto-prisma-access-insights
```

## Before you begin

### Network

| Source              | Destination                                                              | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | `auth.apps.paloaltonetworks.com` (tokens)                                | 443  | HTTPS    |
| OctoXLabs connector | Insights host of your region, for example `pa-us01.api.prismaaccess.com` | 443  | HTTPS    |

### Required permissions

| Scope or role                                                            | Permission | Needed for |
| ------------------------------------------------------------------------ | ---------- | ---------- |
| Service account with role access to your Prisma Access Insights instance | Read       | Users      |

## Create credentials in Palo Alto Networks Prisma Access Insights

{% stepper %}
{% step %}

### Create a service account

In the Prisma SASE platform, create a service account that has role access to your Prisma Access Insights instance.
{% endstep %}

{% step %}

### Copy the credentials

Copy the client ID and client secret. The secret cannot be shown again.
{% endstep %}

{% step %}

### Find the TSG ID

In the Prisma Access Hub, click the Prisma Access Insights application name and look in the **Manage Apps** section.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default                        | Description                                                                                                                            |
| ------------- | -------- | ------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| Domain        | Yes      | String  |                                | Insights host of your region, without `https://`. The region is the Cortex Data Lake region chosen when Insights was first configured. |
| Auth Domain   | No       | String  | auth.apps.paloaltonetworks.com | Host that issues access tokens.                                                                                                        |
| Client ID     | Yes      | String  |                                | Client ID of the service account.                                                                                                      |
| Client Secret | Yes      | String  |                                | Client secret of the service account.                                                                                                  |
| TSG ID        | Yes      | String  |                                | Tenant Service Group ID (sent as `Prisma-Tenant`).                                                                                     |
| Sub-tenant ID | No       | String  |                                | Only when a sub-tenant is configured (sent as `Prisma-SubTenant`).                                                                     |
| Days          | No       | Choice  | 30                             | Activity window: 7 or 30. A user who did not connect in the window is not collected.                                                   |
| Max Results   | No       | Integer | 10000                          | Largest number of users requested, up to 10000. The API has no paging, so users beyond it are not collected.                           |
| Proxy         | No       | String  |                                | Proxy address as `host:port`.                                                                                                          |
| Timeout       | No       | Integer | 30                             | Seconds to wait for API responses.                                                                                                     |

## Troubleshooting

| Error message                                             | Cause                                | Fix                                                            |
| --------------------------------------------------------- | ------------------------------------ | -------------------------------------------------------------- |
| Strata Cloud Manager token response has no access\_token. | The token call returned no token.    | Check Client ID, Client Secret and TSG ID.                     |
| Prisma Access Insights query failed:                      | The API returned a non-200 sub code. | Check TSG ID, region host and the role of the service account. |
| Max retries exceeded for :                                | The API kept answering 401.          | Check the service account and its role.                        |

## Change history

{% hint style="info" %}
Available starting from version 6.9.0.
{% endhint %}
