---
title: "Get User"
description: "Get a workspace user by id, username, or email."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/user/get"
---
# Get User

> Get a workspace user by id, username, or email.

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



</block-meta>

**Get User** loads one workspace member. Choose **Lookup by** **ID**, **Username**, or **Email**. Username and email matches are case-insensitive.

The user must already be a member of this workspace. Missing members fail the step.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Lookup by
      </strong>
    </td>
    
    <td>
      <strong>
        ID
      </strong>
      
       (default), <strong>
        Username
      </strong>
      
      , or <strong>
        Email
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        User id
      </strong>
      
       / <strong>
        Username
      </strong>
      
       / <strong>
        Email
      </strong>
    </td>
    
    <td>
      Value to look up (required; literal or variable). Label follows <strong>
        Lookup by
      </strong>
    </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 user 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>
        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

- Resolve an email collected in chat to a member id before a table User field or [handover](https://docs.vettero.com/build/workflows/blocks/chat/handover).
- Check `isOwner` / `isDeveloper` or `roleIds` before a privileged path.

<block-page-nav>



</block-page-nav>


## Sitemap

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