# Categories access based on custom fields

**URL:** <https://meta.discourse.org/t/categories-access-based-on-custom-fields/52924>\
**Category:** Feature\
**Created:** [15. November 2016 um 15:17 UTC](https://meta.discourse.org/t/categories-access-based-on-custom-fields/52924 "2016-11-15T15:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [15. November 2016 um 15:32 UTC](https://meta.discourse.org/t/categories-access-based-on-custom-fields/52924/2 "2016-11-15T15:32:01Z")

</div>

> [@Nicolas\_Goutaland](#):
>
> I want to know if there is a built-in way to grant categories access based on user custom fields.

No, but you can:

- Create a simple script that reads from your database and setup all the groups on Discourse using the API

- Pass group membership along on the SSO payload.

SSO is easier, the only problem is that membership is only updated on login.

---

_[View the full topic](https://meta.discourse.org/t/categories-access-based-on-custom-fields/52924)._
