# Example code for a X-Pack Custom Roles Provider Extension

**URL:** <https://discuss.elastic.co/t/example-code-for-a-x-pack-custom-roles-provider-extension/102037>\
**Category:** Elasticsearch\
**Created:** [September 27, 2017, 10:07pm UTC](https://discuss.elastic.co/t/example-code-for-a-x-pack-custom-roles-provider-extension/102037 "2017-09-27T22:07:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagrutsharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jagrutsharma/32/22585_2.png) [@jagrutsharma](https://discuss.elastic.co/u/jagrutsharma)\
**Post date:** [September 27, 2017, 10:07pm UTC](https://discuss.elastic.co/t/example-code-for-a-x-pack-custom-roles-provider-extension/102037/1 "2017-09-27T22:07:08Z")

</div>

Hi - Looking for a reference implementation for a custom roles provider extension for X-Pack. This link discusses the approach: [[https://www.elastic.co/guide/en/x-pack/5.4/custom-roles-provider.html](https://www.elastic.co/guide/en/x-pack/5.4/custom-roles-provider.html)]

Thanks a lot.

---

<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:** [October 25, 2017, 10:07pm UTC](https://discuss.elastic.co/t/example-code-for-a-x-pack-custom-roles-provider-extension/102037/2 "2017-10-25T22:07:12Z")

</div>

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