---
title: "List Users"
description: "List workspace users, optionally filtered by role."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/user/list"
---
# List Users

> List workspace users, optionally filtered by role.

<block-meta block="Yes" channels="Any" folder="user" group="User" groupTo="/build/workflows/blocks/user" icon="i-lucide-users" pipe="Value" scope="Any" tool="Yes" type="user.list">



</block-meta>

**List Users** returns members of the current workspace. Optionally **Filter by roles**: anyone with **any** of the selected [roles](https://docs.vettero.com/configuration/roles) is included. Parent and child roles are independent. Leave the filter empty to list all members.

The built-in Vettero agent user is omitted. Results are workspace members, not chat visitors.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Filter by roles
      </strong>
    </td>
    
    <td>
      Optional role tree. Empty means all workspace members
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the list is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        users
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Matching members
    </td>
  </tr>
</tbody>
</table>

Each user includes:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      User id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Display name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        username
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Username
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Email
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        avatar
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Avatar URL when set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        isOwner
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Workspace owner
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        isDeveloper
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Workspace developer
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        roleIds
      </code>
    </td>
    
    <td>
      list of text
    </td>
    
    <td>
      Workspace role ids
    </td>
  </tr>
</tbody>
</table>

## Use case

- Loop with [For Of](https://docs.vettero.com/build/workflows/blocks/loops/for-of) and send a [notification](https://docs.vettero.com/concepts/notifications) to each member in a role.
- Build an assignee list for a [table](https://docs.vettero.com/data/tables) User column.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
