# REST Resource: projects.locations.datasets.consentStores.userDataMappings

## Resource: UserDataMapping

Maps a resource to the associated user and `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/Attribute`.

| JSON representation |
|---|
| ``` { "name": string, "dataId": string, "userId": string, "resourceAttributes": [ { object(`https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/Attribute`) } ], "archived": boolean, "archiveTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Resource name of the User data mapping, of the form `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/userDataMappings/{user_data_mapping_id}`. |
| `dataId` | `string` Required. A unique identifier for the mapped resource. |
| `userId` | `string` Required. User's UUID provided by the client. |
| `resourceAttributes[]` | ``object(`https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/Attribute`)`` Attributes of the resource. Only explicitly set attributes are displayed here. `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition` with defaults set implicitly apply to these \[User data mappings\] \[google.cloud.healthcare.v1.consent.UserDataMappings\]. Attributes listed here must be single valued, that is, exactly one value is specified for the field "values" in each `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/Attribute`. |
| `archived` | `boolean` Output only. Indicates whether this mapping is archived. |
| `archiveTime` | ``string(`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Indicates the time when this mapping was archived. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/archive` | Archives the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping`. |
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/create` | Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores#ConsentStore`. |
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/delete` | Deletes the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping`. |
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/get` | Gets the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping`. |
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/list` | Lists the `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping` in the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores#ConsentStore`. |
| ### `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings/patch` | Updates the specified `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.userDataMappings#UserDataMapping`. |