# Heartbeat roles that are required

**URL:** <https://discuss.elastic.co/t/heartbeat-roles-that-are-required/373189>\
**Category:** Elastic Agent\
**Tags:** elastic-stack-security\
**Created:** [January 14, 2025, 4:00pm UTC](https://discuss.elastic.co/t/heartbeat-roles-that-are-required/373189 "2025-01-14T16:00:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gong](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@Gong](https://discuss.elastic.co/u/Gong)\
**Post date:** [January 14, 2025, 4:00pm UTC](https://discuss.elastic.co/t/heartbeat-roles-that-are-required/373189/1 "2025-01-14T16:00:18Z")

</div>

Hi,

I'm integrating Heartbeat and I've created a user but despite reading the doc's including [Grant users access to secured resources | Heartbeat Reference [8.17] | Elastic](https://www.elastic.co/guide/en/beats/heartbeat/current/feature-roles.html) and scribbling a page of notes, I'm still getting security errors that my user doesn't have the correct rights.

So specifically I need the roles please so that an agent can connect to my Elastic box and send stuff - it works if I give it "superuser" but I don't want to do that.
