> 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/j/jfrog-platform.md).

# JFrog Platform

JFrog Platform is a software supply chain platform built around the Artifactory binary repository. OctoXLabs reads the platform users through the Access API with their email, admin rights, group memberships and last login.

## Use cases

* **Find JFrog admins.** The AdminStatus field is true for direct and group-inherited admin rights.

```
Adapters = jfrog-platform AND AdminStatus = true
```

* **Find JFrog users with no directory account.** How accounts are matched depends on your user merge settings.

```
Adapters = jfrog-platform AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                       | Port                                                                          | Protocol                           |
| ------------------- | --------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- |
| OctoXLabs connector | JFrog Platform (Domain parameter) | 443 by default; a self-hosted platform usually serves the unified API on 8082 | HTTPS (HTTP when Is Secure is off) |

If a proxy is set, requests go through it.

### Required permissions

| Scope or role                                           | Permission | Needed for             |
| ------------------------------------------------------- | ---------- | ---------------------- |
| Internal Artifactory user with administrator privileges | Admin      | Listing platform users |

A non-admin account authenticates but returns no users (baseline).

{% hint style="warning" %}
The credentials are exchanged for a short-lived access token. Token creation with basic credentials must be enabled under **Administration > User Management > Settings**. The account must be an internal Artifactory user. Users from LDAP, SAML or OIDC cannot create a token with basic credentials. The account must not have multi-factor authentication enabled.
{% endhint %}

## Create credentials in JFrog Platform

{% stepper %}
{% step %}

### Enable token creation

Under **Administration > User Management > Settings**, enable token creation with basic credentials.
{% endstep %}

{% step %}

### Create an internal admin user

Create an internal Artifactory user with administrator privileges. Do not enable multi-factor authentication for it.
{% endstep %}

{% step %}

### Note the address

For a cloud subscription the host is `yourcompany.jfrog.io`. For a self-hosted platform it is the host name or IP address of the JFrog server.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                                          |
| ------------ | -------- | ------- | ------- | ------------------------------------------------------------------------------------ |
| Domain       | Yes      | String  | None    | Host of the platform, without the scheme.                                            |
| Port         | No       | Integer | 443     | Port of the platform.                                                                |
| Username     | Yes      | String  | None    | Internal Artifactory admin user.                                                     |
| Password     | Yes      | String  | None    | Password of the user.                                                                |
| Is Secure    | No       | Boolean | True    | Use HTTPS.                                                                           |
| Proxy        | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                          |
| Timeout      | No       | Integer | 30      | Seconds to wait for an API response.                                                 |
| Thread Count | No       | Integer | 32      | Parallel threads for user detail requests. Minimum 1, maximum 32.                    |
| Sleep Time   | No       | Integer | None    | Delay in seconds between thread batches. Increase it when you see rate limit errors. |

## Troubleshooting

| Error message                                                  | Cause                                                                                                                                                         | Fix                                                                         |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The platform answered with an unexpected status, for example when token creation with basic credentials is disabled. This is the shared REST connector error. | Check the three conditions in the hint above, the credentials and the port. |

## Change history

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