# How to create a search that shows non active licenses

To create a search that displays non active licenses, follow the steps below.

Note that non active licenses are defined below as revoked licenses as well as licenses that have expired.

* Launch the QLM Management Console
* Go to the Manage Keys tab
* Click the **search** dropdown button and select **Edit Searches**
* Click **Add**
* Set the Name field to: non-active keys
* In the SQL field, enter: Disabled=1 or SubscriptionExpiryDate < \[today\_start-1]
* Click Ok
* In the right hand panel where the searches are listed, locate your new search and click it.


---

# 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.soraco.co/docs/how-to/how-to-create-a-search-that-shows-non-active-licenses.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.
