---
title: "oz0 user link"
description: "Let the next sign-in through an identity provider by a person whose username is exactly NAME link to the account NAME, once."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/user/link"
---
# oz0 user link

> Let the next sign-in through an identity provider by a person whose username is exactly NAME link to the account NAME, once.

For: Operators and developers looking up a command.

Let the next sign-in through an identity provider by a person whose username is exactly NAME link to the
account NAME, once. No account is linked by its name otherwise: a provider's username alone never reaches an account
that exists, and a username that only becomes NAME once its case, spaces or symbols are folded does not link it. The
link names its provider (--provider; without it, the cluster's only identity provider).

The account must have no
password (user password NAME --remove). Its links so far stay; remove them with user unlink.

## Usage

```bash
oz0 user link NAME [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --provider
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        the cluster's only one
      </code>
    </td>
    
    <td>
      the identity provider whose person may link
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

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