# Unlock-User

Unlocks a Sitecore user using the specified criteria.

## Syntax

Unlock-User \[-Identity] \<AccountIdentity>

Unlock-User -Instance \<User>

## Detailed Description

The Unlock-User command gets a user and unlocks the account in Sitecore.

The Identity parameter specifies the Sitecore user to get. You can specify a user by its local name or fully qualified name. You can also specify user object variable, such as $\<user>.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Identity \<AccountIdentity>

| Aliases                     |                |
| --------------------------- | -------------- |
| Required?                   | true           |
| Position?                   | 1              |
| Default Value               |                |
| Accept Pipeline Input?      | true (ByValue) |
| Accept Wildcard Characters? | false          |

### -Instance \<User>

Specifies the Sitecore user by providing an instance of a user.

| Aliases                     |                |
| --------------------------- | -------------- |
| Required?                   | true           |
| Position?                   | named          |
| Default Value               |                |
| Accept Pipeline Input?      | true (ByValue) |
| Accept Wildcard Characters? | false          |

## Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

* System.String

  Represents the identity of a user.

Sitecore.Security.Accounts.User One or more user instances.

## Outputs

The output type is the type of the objects that the cmdlet emits.

* None.

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE 1

```powershell
PS master:\> Unlock-User -Identity michael
```

### EXAMPLE 2

```powershell
PS master:\> Get-User -Filter * | Unlock-User
```

## Related Topics

* <https://github.com/SitecorePowerShell/Console/>
* [Get-User](/appendix/security/get-user.md)
* [New-User](/appendix/security/new-user.md)
* [Remove-User](/appendix/security/remove-user.md)
* [Set-User](/appendix/security/set-user.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://doc.sitecorepowershell.com/appendix/security/unlock-user.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.
