> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/~/changes/Sh4xqs4GDClkDKT9Hvux/library-packs/software-asset-management/workflow_-license-reclamation/usage-guide-license-reclamation.md).

# Usage guide: License reclamation

### Overview <a href="#overview" id="overview"></a>

Large enterprises often struggle to keep track of the numerous software licenses issued to their employees. Over time, unused and overlooked licenses can quietly add up, incurring needless expenses for the company. Moreover, once identified, the process of revoking a user's license can be time-consuming and typically occurs on an individual basis.

“**Workflow: License reclamation**” pack contains two versions of workflows:

* **License reclamation** - This version exclusively manages the Azure Entra ID operations and it requires "write" permissions within Entra ID.
* **License reclamation (on-premises Active Directory)** - This workflow version is suitable for scenarios where group assignments are managed in on-premises Active Directory, which is synchronized with read-only Entra ID.

Ensure your library pack is properly configured by following the steps highlighted in its configuration guide:

[Configuration guide: License reclamation](/platform/~/changes/Sh4xqs4GDClkDKT9Hvux/library-packs/software-asset-management/workflow_-license-reclamation/configuration-guide-license-reclamation.md)

### Workflow Structure - License reclamation <a href="#workflow-structure-license-reclamation" id="workflow-structure-license-reclamation"></a>

This workflow is designed to operate automatically via an schedule trigger. This section describes the key steps in this workflow:

* Check the user's group membership. Terminate the process if the user is not in the group specified by the workflow parameter. If the user is in the group, start an Engage campaign to request the uninstallation of the software.

<figure><img src="/files/9X67aFPN1EFdI5w81jqk" alt="" width="437"><figcaption></figcaption></figure>

<figure><img src="/files/fuZ1vIaQhmoSLshjpQrv" alt="" width="563"><figcaption></figcaption></figure>

* If the user agrees, or if the workflow parameter “Ask for user permission” is set to “No”, the workflow performs a technical step to retrieve the user’s UUID. This is necessary for the subsequent step of removing the user from the group.

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

### Workflow Structure - License reclamation (on-premises Active Directory) <a href="#workflow-structure-license-reclamation-on-premises-active-directory" id="workflow-structure-license-reclamation-on-premises-active-directory"></a>

This workflow is designed to operate automatically via an schedule trigger. This section describes the key steps in this workflow:

* Retrieve the IDs and on-premises SAM account names for the user and the Entra ID group. This information is necessary for the subsequent step of removing the user from the Active Directory group. If any step of retrieving this information fails, the workflow will terminate execution.

<figure><img src="/files/eiUNQlqlnwyl0whKzFC6" alt="" width="563"><figcaption></figcaption></figure>

* Check if user is a member of application license group.

<figure><img src="/files/QSXYYje3c0qDfJRMLqmq" alt="" width="563"><figcaption></figcaption></figure>

* If a user is identified as a member of the group, the campaign will be triggered to inquire if the license can be reclaimed due to low usage. Should the user consent, a remote action will be initiated to remove the user from the Active Directory group.

<figure><img src="/files/wCnh4DGrsLSHcXIyGkup" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/SvZVLwE1STQKb2ZY74SJ" alt="" width="563"><figcaption></figcaption></figure>

***

RELATED TOPICS&#x20;

* [Manage Applications](https://docs.nexthink.com/platform/latest/getting-started-with-applications)
* [Manage Workflows](https://docs.nexthink.com/platform/latest/manage-workflows)
* [Manage Remote Actions](https://docs.nexthink.com/platform/latest/getting-started-with-remote-actions)
* [Manage Campaigns](https://docs.nexthink.com/platform/latest/manage-campaigns)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.nexthink.com/platform/~/changes/Sh4xqs4GDClkDKT9Hvux/library-packs/software-asset-management/workflow_-license-reclamation/usage-guide-license-reclamation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
