--- title: "get webmonitor users by role()" slug: "basic-get-web-monitor-users-by-role" updated: 2026-08-17T11:16:06Z published: 2026-08-17T11:16:06Z canonical: "docs.lobstersoftware.com/basic-get-web-monitor-users-by-role" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # get webmonitor users by role() This function writes all DataCockpit users (of the currently selected client) who have role **a** assigned into list **b**, prefixing each user with "WebMonitor". ## Parameters | Parameter | Description | | --- | --- | | a | Name of the DataCockpit role to be read out. | | b | Name of the list in which the DataCockpit users should be written. | | c | (optional) If "true", the list **b** is cleared beforehand. Default: "false". |