# lookup

`sid::lookup` can be used to lookup an object by its SID or name. It has the following command line arguments:

* `/sid`: the security identifier value to lookup
* `/name`: the `sAMAccountName` of the account to lookup
* `/domain`: the domain name. If not specified, the current domain will be used

```
mimikatz # sid::lookup /name:m3g9tr0n
Name  : m3g9tr0n
Type  : User
Domain: hacklab
SID   : S-1-5-21-2725560159-1428537199-2260736313-1730
```

```
mimikatz # sid::lookup /sid:S-1-5-21-2725560159-1428537199-2260736313-1730
SID   : S-1-5-21-2725560159-1428537199-2260736313-1730
Type  : User
Domain: hacklab
Name  : m3g9tr0n
```

```
mimikatz # sid::lookup /sid:S-1-5-21-2725560159-1428537199-2260736313
SID   : S-1-5-21-2725560159-1428537199-2260736313
Type  : Domain
Domain: hacklab
Name  :
```


---

# 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://tools.thehacker.recipes/mimikatz/modules/sid/lookup.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.
