<p><code>{% set user = product.usersFieldHandle.first() %}</code> will give you the <code>UserModel</code> of the first related user.  </p>

<p>Then e.g. <code>{{ user.fieldHandle }}</code> </p>

CC BY-SA 3.0
2016-10-28T10:43:12.093Z
With Craft it usually is :)
Jeremy Daalder
CC BY-SA 3.0
2016-10-28T09:28:23.540Z
2016-10-28T09:28:23.540Z
Jeremy Daalder
<p>With Craft Commerce, I have a custom field that allows you to select which user from a defined group the product belongs to/is associated with.</p>

<p>I want to be able to set the user in order to access additional information about this user (profile info etc) and display this on the relevant product page.</p>

<p>How would I achieve this?</p>

<users><plugin-craftcommerce>
Set user based on their attachment to a product
# Set user based on their attachment to a product

(Asked by: username_0 on 2016-10-28)

With Craft Commerce, I have a custom field that allows you to select which user from a defined group the product belongs to/is associated with.

I want to be able to set the user in order to access additional information about this user (profile info etc) and display this on the relevant product page.

How would I achieve this?

**Tags:** users, plugin-craftcommerce

---

## 1 answers

### Answer by username_1 on 2016-10-28. Score: 1 | Accepted answer

`{% set user = product.usersFieldHandle.first() %}` will give you the `UserModel` of the first related user.

Then e.g. `{{ user.fieldHandle }}`

> **Comments:**
> **username_1**: With Craft it usually is :)  

---

