# Attach Consumer Label Configuration

The `attach-consumer-label` plugin attaches custom consumer labels to authenticated requests, for upstream services to implement additional business logics.<!-- --> <!-- -->Configuration covers plugin parameters.

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

* headers

  object

  required

  ***

  Key-value pairs of consumer labels to attach to request headers, where the key is a request header name, such as `X-Consumer-Role`, and the value references a custom label key, such as `$role`. The value must start with a dollar sign (`$`).

  The gateway clears every configured header before resolving its label. If a referenced label is absent, the upstream receives no value for that header, including any value supplied by the client. This behavior was introduced in API7 Gateway 3.9.16 and 3.10.2, and in APISIX 3.18.0. In earlier versions, an absent label does not overwrite a client-supplied header value.
