# Account Link Field for V2?

**URL:** <https://discourse.getcockpit.com/t/account-link-field-for-v2/2903>\
**Category:** Cockpit v2\
**Created:** [December 10, 2023, 11:46am UTC](https://discourse.getcockpit.com/t/account-link-field-for-v2/2903 "2023-12-10T11:46:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![poe](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/poe/32/1198_2.png) [@poe](https://discourse.getcockpit.com/u/poe)\
**Post date:** [December 10, 2023, 11:46am UTC](https://discourse.getcockpit.com/t/account-link-field-for-v2/2903/1 "2023-12-10T11:46:53Z")

</div>

Suppose that I have a model called `Books`, I don’t want to create a new model `Authors` to link `Books` model, I just want to link existing users of Cockpit. In V1, I can achieve this by using `Account Link` but it seems v2 is missing `account link` field. How can I account link in v2?

---

<div class="post-metadata">

**Author:** ![OGFaisalN](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/ogfaisaln/32/1551_2.png) [@OGFaisalN](https://discourse.getcockpit.com/u/OGFaisalN)\
**Post date:** [January 11, 2024, 4:24pm UTC](https://discourse.getcockpit.com/t/account-link-field-for-v2/2903/2 "2024-01-11T16:24:23Z")

</div>

The only built-in way I can think of is linking from another collection with `Author`s, or using `Book._mby` (modified by) of `Book._cby` (created by). The first option I use, works out okay - just does not have all the users automatically, you have to create each one. The second I do not use just because `._mby` and `._cby` returns just the user ID, not the name or email which are needed more than the ID. We have asked, and for now there is no way to get user account details from the user’s ID. Modifying the API may solve this problem.
