> 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/d/delinea-centrify-identity-services.md).

# Delinea Centrify Identity Services

Delinea Centrify Identity Services is a cloud identity platform. OctoXLabs uses it to add the users of the tenant, with e-mail, display name and last login, to the inventory.

## Use cases

* Find identity users that are missing from your directory, which can point to orphaned accounts.
* Review when tenant users last logged in to find stale accounts.

## Before you begin

### Network

| Source              | Destination                                          | Port | Protocol |
| ------------------- | ---------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Tenant domain, for example `abc1234.my.centrify.net` | 443  | HTTPS    |

### Required permissions

| Scope or role                                                               | Permission | Needed for                              |
| --------------------------------------------------------------------------- | ---------- | --------------------------------------- |
| Confidential OAuth2 service application with the `client_credentials` grant | Read       | User table query (`Select * from User`) |

Client ID, Client Secret and OAuth App ID must all come from the same application. Not verified: the tenant role or scope the service user needs. Leave Scope empty unless the application requires one.

## Create credentials in Delinea Centrify Identity Services

{% stepper %}
{% step %}

### Create the service application

In the tenant, configure a confidential OAuth2 service application that uses the `client_credentials` grant type.
{% endstep %}

{% step %}

### Note the application id

The OAuth App ID is the last path segment of the token URL: `https://<domain>/oauth2/token/<oauth_app_id>`.
{% endstep %}

{% step %}

### Copy client id and secret

Copy the Client ID and the Client Secret. The secret is shown only once, so store it safely.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type              | Default | Description                                                           |
| ------------- | -------- | ----------------- | ------- | --------------------------------------------------------------------- |
| Domain        | Yes      | String            | None    | Tenant domain without a scheme. It is in the URL of the admin portal. |
| OAuth App ID  | Yes      | String            | None    | Application id of the OAuth2 service application.                     |
| Client ID     | Yes      | String            | None    | Client id of the same application.                                    |
| Client Secret | Yes      | String            | None    | Client secret of the same application.                                |
| Scope         | No       | String            | Empty   | OAuth2 scope to request.                                              |
| Proxy         | No       | String            | None    | Proxy, used as `http://<proxy>`.                                      |
| Timeout       | No       | Integer (seconds) | `30`    | Time to wait for API responses.                                       |

## Troubleshooting

| Error message                    | Cause                               | Fix                                                  |
| -------------------------------- | ----------------------------------- | ---------------------------------------------------- |
| `Max retries exceeded for <url>` | The tenant kept answering HTTP 401. | Check the client id, client secret and OAuth App ID. |

## Change history

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