# No enrollment token for Fleet Agent

**URL:** <https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [December 11, 2020, 9:18pm UTC](https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453 "2020-12-11T21:18:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AirJordan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/airjordan/32/46017_2.png) [@AirJordan](https://discuss.elastic.co/u/AirJordan)\
**Post date:** [December 11, 2020, 9:18pm UTC](https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453/1 "2020-12-11T21:18:03Z")

</div>

I went to do the wizard for creating a fleet agent user and let it setup everything. When I clicked create user all of a sudden it timed out my web session. I went back in and the user for fleet enrollment is there. The role is also assigned to it and the roll looks like it has the right permissions. I went to deploy an agent and noticed that there is no enrollment token at all listed. So I can't setup the ElasticBeats. Is there a way to almost start the wizard over again.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [December 14, 2020, 10:34am UTC](https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453/2 "2020-12-14T10:34:15Z")

</div>

I think you can use the `/api/fleet/enrollment-api-keys` to create one.

---

<div class="post-metadata">

**Author:** ![AirJordan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/airjordan/32/46017_2.png) [@AirJordan](https://discuss.elastic.co/u/AirJordan)\
**Post date:** [December 14, 2020, 9:16pm UTC](https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453/3 "2020-12-14T21:16:31Z")

</div>

It was a poc so I just built it again on Sunday before the reply. I took a snapshot. It almost seems like in the realm chain I needed local for that fleet user. Once I added native to the realm chain and rain it, everything seemed to start creating enrollment ids. Thanks for the extra advice.

---

<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:** [January 11, 2021, 11:16pm UTC](https://discuss.elastic.co/t/no-enrollment-token-for-fleet-agent/258453/4 "2021-01-11T23:16:33Z")

</div>

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