# impersonation

**URL:** <https://forum.search-guard.com/t/impersonation/1291>\
**Category:** Search Guard\
**Created:** [January 18, 2019, 2:14pm UTC](https://forum.search-guard.com/t/impersonation/1291 "2019-01-18T14:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabien\_Wernli](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Fabien\_Wernli](https://forum.search-guard.com/u/Fabien_Wernli)\
**Post date:** [January 18, 2019, 2:14pm UTC](https://forum.search-guard.com/t/impersonation/1291/1 "2019-01-18T14:14:06Z")

</div>

A couple of questions on user impersonation:

1. does the setting have to be on all ES nodes, or will the one hit by the request suffice?

2. what’s the format to use certificate DNs in the config? I tried the following:

searchguard.authcz.rest\_impersonation\_user.CN=sgadmin,OU=client,O=client,L=Test,C=DE:

- ‘\*’

``

---

<div class="post-metadata">

**Author:** ![searchguard\_google\_group](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/searchguard_google_group/32/462_2.png) [@searchguard\_google\_group](https://forum.search-guard.com/u/searchguard_google_group)\
**Post date:** [January 18, 2019, 3:41pm UTC](https://forum.search-guard.com/t/impersonation/1291/2 "2019-01-18T15:41:57Z")

</div>

1) on all  
2) [User impersonation in Search Guard | Security for Elasticsearch | Search Guard](https://docs.search-guard.com/latest/user-impersonation)

> **···**
>
> > Am 18.01.2019 um 15:14 schrieb Fabien Wernli \<swissunix@gmail.com\>:
> > 
> > A couple of questions on user impersonation:
> > 
> > 1. does the setting have to be on all ES nodes, or will the one hit by the request suffice?  
> > 2. what's the format to use certificate DNs in the config? I tried the following:
> > 
> > searchguard.authcz.rest\_impersonation\_user.CN=sgadmin,OU=client,O=client,L=Test,C=DE:  
> > &nbsp;&nbsp;- '\*'
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.  
> > To post to this group, send email to search-guard@googlegroups.com.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/search-guard/65957bcc-89e8-4020-8b02-b4d31b07b987%40googlegroups.com\](https://groups.google.com/d/msgid/search-guard/65957bcc-89e8-4020-8b02-b4d31b07b987%40googlegroups.com%5C).  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).
