# modify

{% hint style="warning" %}
To use this command, [`sid::patch`](https://tools.thehacker.recipes/mimikatz/modules/sid/patch) must be executed first.
{% endhint %}

`sid::modify` can be used to modify an object's SID. The command must be executed directly on a domain controller. It has the following command line argument:

* `/sam`: the `sAMAccountName`.
* `/new`: the new SID value. It also accepts format such as `Builtin\administrators`.

```
mimikatz # sid::modify /sam:username /new:S-1-5-21-...
```

![SID modification](https://894632015-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiRT0QHotSpofwDFs_w%2Fuploads%2Fgit-blob-28c1874e641eeea9554d384522b4adeb5e7aa234%2Fsid_modify.jpg?alt=media)
