← All plugins

User field

A field type that points to a user of the project - e.g. the contact person of a product or the author of an article. The content API delivers id and name.

Download user-field.zip
Version
1.0.1
Activated
Per project
Size
5 KB

Install

  1. Download the ZIP.
  2. In the admin app: Administration › Plugins › Upload plugin (ZIP).
  3. Install (runs its migrations), then activate it in the projects that need it.

A field type User for entities and blocks: points to a user of the CMS, e.g. the contact person of a product.

  • The admin app offers the active users of the project and the admins, with a search. The plugin's route is GET /api/v1/plugins/user-field/api/users.
  • The content API delivers {"id": "…", "name": "Jane Doe"}, never the e-mail address. A deleted user keeps the id (name null).
  • Writing takes the id (or {id}). Unknown users are refused.

No build needed: make plugin-zip name=user-field.