# List Inactive Users

### Description

Lists users and guests that have not signed in interactively for a specified number of days. Optionally includes accounts that never signed in and accounts that are blocked.

### Location

Organization → Security → List Inactive Users

**Full Runbook name**

rjgit-org\_security\_list-inactive-users

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * User.Read.All
  * AuditLog.Read.All
  * Organization.Read.All

### Parameters

#### Days

Number of days without interactive sign-in.

| Property      | Value |
| ------------- | ----- |
| Required      | false |
| Default Value | 30    |
| Type          | Int32 |

#### ShowBlockedUsers

If set to true, includes users and guests that cannot sign in.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | True    |
| Type          | Boolean |

#### ShowUsersThatNeverLoggedIn

If set to true, includes users and guests that never signed in.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | False   |
| Type          | Boolean |

[Back to Runbook Reference overview](/automation/runbooks/runbook-references.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.realmjoin.com/automation/runbooks/runbook-references/org/security/list-inactive-users.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.
