# Populating User Information From AD Authentication

**URL:** <https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 19, 2022, 8:46pm UTC](https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236 "2022-05-19T20:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [May 19, 2022, 8:46pm UTC](https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236/1 "2022-05-19T20:46:07Z")

</div>

Is it possible to populate a user's Elasticsearch/Kibana fields when authenticated against AD? I'm guessing it's through the use of the `xpack.security.authc.realms.activedirectory.metadata` setting, but I'm not sure what the syntax is supposed to look like and the documentation isn't really clear on it either.

The goal would be for the user profile to populate the user's first and last name and email address. Currently, those fields are blank for my AD authenticated users.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [May 20, 2022, 4:37am UTC](https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236/2 "2022-05-20T04:37:08Z")

</div>

No, it is not possible to resolve the user's full name or email address from the directory

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [May 20, 2022, 3:05pm UTC](https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236/3 "2022-05-20T15:05:54Z")

</div>

That's too bad, considering we have a way of pulling those attributes into the user's metadata. I would imagine mapping that over to the appropriate fields in Kibana would be fairly simple.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 17, 2022, 3:06pm UTC](https://discuss.elastic.co/t/populating-user-information-from-ad-authentication/305236/4 "2022-06-17T15:06:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
