# 設定ガイド: ライセンスの再割り当て

{% hint style="info" %}
このページの構成オプションは[管理者](https://github.com/nexthink/documentation.online-product-documentation/blob/develop/ja_docs/configuring_nexthink/configuring-your-platform/administration/account-management/roles/README.md#roles-administration)のみが見ることができます。

ライブラリのコンテンツを標準ユーザーとして使用するには、[使用ガイド: ライセンス回収について](/platform/ja/library-packs/software-asset-management/workflow_-license-reclamation/usage-guide-license-reclamation.md)を参照してください。
{% endhint %}

## 前提条件 <a href="#pre-requisites" id="pre-requisites"></a>

このライブラリパックには次の[拡張製品](https://docs.nexthink.com/platform/ja/overview/products)のコンテンツが含まれています。

* [Application Experience - Applications](https://docs.nexthink.com/platform/ja/user-guide/applications)
* [フロー - ワークフロー](https://docs.nexthink.com/platform/ja/user-guide/workflows)
* [従業員エンゲージメント - キャンペーン](https://docs.nexthink.com/platform/ja/user-guide/campaigns)

{% hint style="info" %}
これらの製品のいくつかは、各コンテンツへのデフォルトのアクセスを提供し、[拡張製品](https://docs.nexthink.com/platform/ja/overview/products)なしでも使用できます。

Nexthink Infinity の拡張製品の標準しきい値については、[Nexthink Infinity しきい値および制限の概要](https://edocs.nexthink.com/ja/nexthink-infinity/infinity-specifications/nexthink-infinity-default-thresholds-overview) ドキュメントをご参照ください。
{% endhint %}

## 含まれるコンテンツと依存関係 <a href="#content-list-and-dependency" id="content-list-and-dependency"></a>

このライブラリパックには、以下のコンテンツと依存関係が含まれています:

| コンテンツの種類                                                                     | 名前                               | 説明                                                                                          | 依存関係 |
| ---------------------------------------------------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------- | ---- |
| [ワークフロー](https://docs.nexthink.com/platform/ja/user-guide/workflows)         | ライセンス回収                          | Entra IDへのAPI呼び出しにより、ユーザーIDに基づいてアプリケーショングループからユーザーを削除し、自動的にライセンスを回収します。                     |      |
| [ワークフロー](https://docs.nexthink.com/platform/ja/user-guide/workflows)         | ライセンス回収 (オンプレミスActive Directory) | ユーザーのSAMアカウント名に基づいてActive Directoryにリモートアクションをトリガーし、アプリケーショングループからユーザーを削除し、自動的にライセンスを回収します。 |      |
| [キャンペーン](https://docs.nexthink.com/platform/ja/user-guide/campaigns)         | ライセンス回収要求 - ワークフロー呼び出し           | ユーザーに、アプリケーションを引き続き使用しているかどうかを尋ねます。                                                         |      |
| [リモートアクション](https://docs.nexthink.com/platform/ja/user-guide/remote-actions) | ADグループからユーザーを削除するアクションを呼び出す      | 指定されたユーザーをオンプレミスActive Directoryグループから削除することを目的としたリモートアクションです。                              |      |

## ライセンス回収の設定 <a href="#configuration-guide" id="configuration-guide"></a>

{% hint style="info" %}
この提案された設定ステップを適応させて、組織のニーズに応じてコンテンツを編集およびカスタマイズしてください。
{% endhint %}

Skynet をシステムにインストールするための手順に従ってください:

* 設定の前に - [Nexthinkライブラリからライブラリパックのコンテンツをインストール](/platform/ja/user-guide/nexthink-library.md)
* [ステップ 1 - リモートアクションを設定する](#step-1-configure-remote-action-s)
* [ステップ 2 - キャンペーンを編集](#step-2-edit-campaigns)
* [ステップ 3 - Entra ID統合を設定](#step-3-configure-entra-id-integration)
* [ステップ 4 - ワークフローパラメータを設定](#step-4-configure-workflow-parameters)
* [ステップ 5 - API Thinlet資格情報を維持](#step-5-maintain-api-thinklet-credentials)
* [ステップ 6 - ワークフロートリガの維持](#step-6-maintain-workflow-trigger)

### ステップ 1 – リモートアクションの設定

メインメニューから、**リモートアクション > リモートアクションの管理** に移動します。

1. **AD グループからユーザーを削除するコマンドを呼び出す** を見つけます。
2. AD 環境に合わせて、必要に応じてその **入力パラメーター** を確認して編集します。
3. ライセンスのクリーンアップ頻度に応じて、**手動またはスケジュールに基づくトリガ** を設定します。

### ステップ 2 – キャンペーンの編集

メインメニューから、**キャンペーン > キャンペーンの管理** に移動します。

インストール済みの各キャンペーンに対して:

1. **送信者名** と **画像** をカスタマイズします。
2. キャンペーンの**質問**を確認して調整します。
3. 準備ができたらキャンペーンを**公開**します。

Nexthink はライセンスキャンペーンにこれらの設定を推奨します:

| 名前          | トリガー | 優先度   |
| ----------- | ---- | ----- |
| ライセンスクレーム要求 | 手動   | 緊急でない |

### ステップ 3 – Entra ID インテグレーションの設定

Entra ID がまだ設定されていない場合は、Azure の管理者に問い合わせてください。

2つの統合ポイントが必要です:

1. **UPN** をユーザーテーブルにインポートします。
2. Entra ID コネクタに **API 資格情報** を保存します。

フルセットアップ手順については、[ワークフローのための Entra ID 統合](/platform/ja/library-packs/faq/entra-id-integration-for-workflows.md) を参照してください。

[Entra ID コネクタ thinklet](/platform/ja/user-guide/workflows/creating-workflows/configuring-connector-thinklet/microsoft-entra-id-connector-thinklet.md) ドキュメンテーションに記載されている権限を確認してください。

### ステップ 4 – ワークフローパラメーターの設定

**ワークフローエディター** でこれらのパラメーターを確認します:

* **許可を求めますか?** － アクセスを取り消す前にユーザーの同意を要求するか選択してください。
* **承認グループ** － ライセンスプロビジョニングに結びつく AD グループの名称。
* **アプリケーション名** － 管理されているアプリの名称。

使用例：

「Salesforce Lightning」ユーザーをターゲットにするためにパラメーターを使用します。

* 過去 90 日間に**5 分未満**利用した。
* キャンペーンでまだアクセスを必要とすることを確認して**いない**。

例: **NQL** （アプリケーションエクスペリエンス + ソフトウェアメータリングが必要）

```
users during past 30d 
| where ad.email_address != null 
| include software_metering.events during past 90d 
| where application.name == "Salesforce Lightning" 
| compute focus_time = web_focus_time.sum() 
| include campaign.license_reclamation_request.responses during past 90d 
| where parameters.application_name == "Salesforce Lightning" 
| where state == answered 
| where answers.question1.label == "yes" 
| compute user_needs_application = user.count() 
| where focus_time < 5min 
| where user_needs_application == 0
```

### ステップ 5 – API thinklet 資格情報の維持

各 **Service/API thinklet** には資格情報の設定が必要です。

1. **管理 > コネクタ資格情報** に移動します。
2. 以下に必要な資格情報を追加します:
   * Microsoft Graph API
   * Active Directory 統合
3. ワークフローで、各関連 **API thinklet** の **資格情報** フィールドに入力します。

{% hint style="info" %}
ワークフローがライブラリからインポートされると、資格情報フィールドは空白であり、ローカルで設定する必要があります。
{% endhint %}

<figure><img src="/files/GtAGUuAHfpsEpnIVzMjv" alt=""><figcaption></figcaption></figure>

### ステップ 6 – ワークフロートリガを維持

このワークフローは **スケジュール** ベースで実行されるように設計されています。

1. **ワークフロー > ワークフローの管理** からワークフローを開きます。
2. **一般** タブに移動します。
3. **スケジュール** チェックボックスを有効にします。
4. 必要に応じてアプリケーションやグループごとに個別のスケジュールを定義します。

{% hint style="info" %}
ライセンス効率のために、ライセンスを維持することを要求したユーザーを除外するように工夫した NQL クエリを使用してください。
{% endhint %}

<figure><img src="/files/Iov6Bku1s4Nt6ZSMGSJ1" alt=""><figcaption></figcaption></figure>

***

関連トピック

* [アプリケーションの管理](https://docs.nexthink.com/platform/ja/user-guide/applications/getting-started-with-applications)
* [ワークフローの管理](https://docs.nexthink.com/platform/ja/user-guide/workflows/managing-workflows)
* [リモート アクションを管理する](https://docs.nexthink.com/platform/ja/user-guide/remote-actions/getting-started-with-remote-actions)
* [キャンペーンの管理](https://docs.nexthink.com/platform/ja/user-guide/campaigns/managing-campaigns)
* [ワークフロー: ライセンス再取得](/platform/ja/library-packs/software-asset-management/workflow_-license-reclamation.md)
* [使用ガイド: ライセンス再取得](/platform/ja/library-packs/software-asset-management/workflow_-license-reclamation/usage-guide-license-reclamation.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexthink.com/platform/ja/library-packs/software-asset-management/workflow_-license-reclamation/configuration-guide-license-reclamation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
