# Usage guide: Microsoft 365 E5 license optimization

## Overview <a href="#usageguide-microsoft365e5licenseoptimization-overview" id="usageguide-microsoft365e5licenseoptimization-overview"></a>

Managing Microsoft 365 licenses efficiently is crucial for cost control. Organizations often struggle with assigning the right licenses to the right users, leading to unnecessary expenses. To address this, an automated workflow within Entra ID streamlines the process. By detecting E5 license holders, seeking reclamation consent, and transitioning to E3 licenses, organizations can save time and reduce costs. Leveraging Power BI Pro consumption data enhances accuracy in targeting users for license adjustments.

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

[Configuration guide: Microsoft 365 E5 license optimization](/platform/library-packs/software-asset-management/workflow_-microsoft-365-e5-license-optimization/configuration-guide_-microsoft-365-e5-license-optimization.md)

## Workflow Structure <a href="#usageguide-microsoft365e5licenseoptimization-workflowstructure" id="usageguide-microsoft365e5licenseoptimization-workflowstructure"></a>

This workflow is primarily designed to run automatically using a scheduled trigger. However, it can also be manually triggered for ad hoc usage. The first step of the workflow is to check if a user belongs to a security group associated with a specific software license. This allows the workflow to be run on all users who are not using the software.

This section describes the key steps in this workflow:

* Check the device user’s group affiliation. Should the user not belong to the group outlined in the workflow parameter “**MS365 E5 authorization group**”, halt the process. Conversely, if they are a member of the group, launch a campaign to inquire whether they will require the Microsoft Power BI application in the upcoming period.

<div data-full-width="true"><figure><img src="/files/egYiiHsdytHYk2GN2W9G" alt=""><figcaption></figcaption></figure></div>

* If the “**Ask for permission?**” workflow parameter is enabled, the user will be presented with the following campaign”

<figure><img src="/files/u1K5xhapof5FJfklmwlX" alt="image-20240321-133622.png"><figcaption></figcaption></figure>

* The workflow advances to the stage where it retrieves the user’s UUID, a vital step for the following verification of the user’s group membership according to the “**MS365 E3 authorization group**” workflow parameter. If the user is not a member of the E3 group, they are included in it, and ultimately, they are removed from the group defined by the **“MS365 E5 authorization group”** workflow parameter.

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

***

RELATED TOPICS

* [Manage Workflows](https://nexthink.gitbook.io/opd/user-guide/workflows/managing-workflows)
* [Manage Campaigns](https://nexthink.gitbook.io/opd/user-guide/campaigns/managing-campaigns)


---

# 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/library-packs/software-asset-management/workflow_-microsoft-365-e5-license-optimization/usage-guide_-microsoft-365-e5-license-optimization.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.
