# Cloud Identity-Aware Proxy v1 API - Class AttributePropagationSettings (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class AttributePropagationSettings : IMessage<AttributePropagationSettings>, IEquatable<AttributePropagationSettings>, IDeepCloneable<AttributePropagationSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Identity-Aware Proxy v1 API class AttributePropagationSettings.

Configuration for propagating attributes to applications protected
by IAP.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AttributePropagationSettings

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AttributePropagationSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttributePropagationSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AttributePropagationSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Iap.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1)

## Assembly

Google.Cloud.Iap.V1.dll

## Constructors

### AttributePropagationSettings()

    public AttributePropagationSettings()

### AttributePropagationSettings(AttributePropagationSettings)

    public AttributePropagationSettings(AttributePropagationSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings` |

## Properties

### Enable

    public bool Enable { get; set; }

Optional. Whether the provided attribute propagation settings should be
evaluated on user requests. If set to true, attributes returned from the
expression will be propagated in the set output credentials.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Expression

    public string Expression { get; set; }

Optional. Raw string CEL expression. Must return a list of attributes. A
maximum of 45 attributes can be selected. Expressions can select different
attribute types from `attributes`: `attributes.saml_attributes`,
`attributes.iap_attributes`. The following functions are supported:

- filter `<list>.filter(<iter_var>, <predicate>)`: Returns a subset of
  `<list>` where `<predicate>` is true for every item.

- in `<var> in <list>`: Returns true if `<list>` contains `<var>`.

- selectByName `<list>.selectByName(<string>)`: Returns the attribute
  in
  `<list>` with the given `<string>` name, otherwise returns empty.

- emitAs `<attribute>.emitAs(<string>)`: Sets the `<attribute>` name
  field to the given `<string>` for propagation in selected output
  credentials.

- strict `<attribute>.strict()`: Ignores the `x-goog-iap-attr-` prefix
  for the provided `<attribute>` when propagating with the `HEADER` output
  credential, such as request headers.

- append `<target_list>.append(<attribute>)` OR
  `<target_list>.append(<list>)`: Appends the provided `<attribute>` or
  `<list>` to the end of `<target_list>`.

Example expression: `attributes.saml_attributes.filter(x, x.name in
['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### HasEnable

    public bool HasEnable { get; }

Gets whether the "enable" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasExpression

    public bool HasExpression { get; }

Gets whether the "expression" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### OutputCredentials

    public RepeatedField<AttributePropagationSettings.Types.OutputCredentials> OutputCredentials { get; }

Optional. Which output credentials attributes selected by the CEL
expression should be propagated in. All attributes will be fully duplicated
in each selected output credential.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettingshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AttributePropagationSettings.Types.OutputCredentials` |   |