# Add a Related users custom field

You can relate Sitefinity users to a Dynamic Content Module by using a field control that lets you select the users that will be related to your dynamic content items. The users are stored as an array of `user identifiers (Guid[])`.

For this field control, you need a Sitefinity web application, as defined in the following example:

1. Add the source code from the repository at <https://github.com/Sitefinity/related-users-field-control> to your SitefinityWebApp project.

   If you used the same folder structure as in that repository, the CLR type of the field control is:

   `SitefinityWebApp.FieldControls.RelatedUsers.RelatedUsersField`
2. Build your solution and run your Sitefinity application.
3. In the Module Builder window, add a new field to the Dynamic Module you want to extend:

   [![related users Module Builder](https://www.progress.com/documentation/sitefinity-cms/assets/13fad66ccd5d6c9194ce3d318fd977c8/related-users-module-builder.tmb-small.png "related users Module Builder")](https://www.progress.com/documentation/sitefinity-cms/assets/13fad66ccd5d6c9194ce3d318fd977c8/related-users-module-builder.tmb-small.png)
4. Fill in the new field properties as shown in this example:

   * Name: *NewField*
   * Type: `Array of GUIDs`
   * This is a hidden field: *unchecked*
   * Type or Virtual path of the custom widget: `SitefinityWebApp.FieldControls.RelatedUsers.RelatedUsersField`
5. When you open your content module to add or edit an item, you see the RelatedUsers control:

   [![Access to Related Users dialog](https://www.progress.com/documentation/sitefinity-cms/assets/a3b6b28586977603c5b40856bff3d86c/access-to-related-users-dialog.tmb-small.png "Access to Related Users dialog")](https://www.progress.com/documentation/sitefinity-cms/assets/a3b6b28586977603c5b40856bff3d86c/access-to-related-users-dialog.tmb-small.png)

   Clicking `Select Users…` opens the selection dialog, as illustrated:

   [![Selecting from Related Users](https://www.progress.com/documentation/sitefinity-cms/assets/5908f55806a0ca06a1c8cc10b16b383e/selecting-from-related-users.tmb-small.png "Selecting from Related Users")](https://www.progress.com/documentation/sitefinity-cms/assets/5908f55806a0ca06a1c8cc10b16b383e/selecting-from-related-users.tmb-small.png)

You can further adjust the user selector to fit your requirements. Because it is based on the Sitefinity `FlatSelector`, the options can be easily modified in the template file of the user selector field, `RelatedUsersField.ascx`. Common adjustments are for: `AllowPaging`, `PageSize`, `AllowMultipleSelection`, `AllowSearching`,  and `ShowProvidersList`.
