--- title: "User Attributes" description: "User Attributes Definitions Configuration" summary: "Authelia allows configuring reusable user attribute definitions." date: 2025-02-22T16:18:09+11:00 draft: false images: [] weight: 199100 toc: true seo: title: "" # custom title (optional) description: "" # custom description (recommended) canonical: "" # custom canonical URL (optional) noindex: false # false (default) or true --- The user attributes section allows you to define custom attributes for your users using Common Expression Language (CEL). These attributes can be used at the current time to: - Enhance OpenID Connect claims with dynamic values ## Configuration {{< config-alert-example >}} ```yaml {title="configuration.yml"} definitions: user_attributes: # Boolean attribute example is_admin: expression: '"admin" in groups' # String attribute example department: expression: 'groups[0]' # Number attribute example access_level: expression: '"admin" in groups ? 10 : 5' ``` ## Options This section describes the individual configuration options. Currently, these attribute definitions are used in the [OpenID Connect 1.0 Provider](../identity-providers/openid-connect/provider.md#pol). The key name is the name of the resulting attribute. It is important to note that this attribute name must not conflict with extra attributes defined within the authentication backend, or with the common attributes we have defined. In the above example the following attributes are added: - `is_admin` - `department` - `access_level` ### expression The [Common Expression Language](https://github.com/google/cel-spec) expression for this attribute.