# Add a client org

_For tartan 0.9.36._

Each client gets its own organization: its own network, its own certificate authority, its own name.

Each client gets its own organization: its own network, its own certificate authority, its own name. Your team reaches it through the client's trust in your sign-in groups.

Below, your outsourced IT organization is `acme` and the new client is `northgate`.

## 1. Sign up the client's organization

The person who will hold the client's Owner passkey signs up a new organization, with a sign-in profile of its own
in the folder the console reads, as in [Create your org](create-org.md). That can be the client, or someone on your team
who keeps the passkey for them.

```powershell
tartan profile init --api https://api.tartannetworks.com --aud ctl_tartan1 --profile "$env:APPDATA\Tartan\console\northgate.json"
```

Without `--accept-terms`, sign-up prints the statement and the texts they would accept, and stops:

```powershell
tartan signup --profile "$env:APPDATA\Tartan\console\northgate.json" --new-org northgate --org-name "Northgate" --name "<owner name>" --ident <owner handle> --register
```

The person reads them and, when they agree, runs it again with `--accept-terms`. Windows asks them to create the
Owner passkey, and the organization gets its name, `northgate.tartan.net`. The sign-up ends with a `Next:` line that
names the registry request's id:

```powershell
tartan signup --profile "$env:APPDATA\Tartan\console\northgate.json" --new-org northgate --org-name "Northgate" --name "<owner name>" --ident <owner handle> --register --accept-terms
```

Finish the set-up as in [Create your org](create-org.md), from step 5. Below, `northgate.json` stands for that profile
file.

An Owner signs in with the passkey alone, never with SSO. Keep the Owner passkey for Owner acts, and work day
to day as an Admin.

## 2. Trust your team

Signed in as the client's Owner, add one rule per group of yours ([Your team and your clients](team-and-clients.md)).
A `tech` or `viewer` rule may also come from an Admin; an `admin` rule needs the Owner. The `northgate` Owner's passkey approves each one.

```sh
tartan idp trust add --profile northgate.json --org northgate --issuer https://login.microsoftonline.com/<your tenant id>/v2.0 --client_id <Tartan's app id> --claim groups --value <Tartan Techs object id> --role tech
tartan idp trust add --profile northgate.json --org northgate --issuer https://login.microsoftonline.com/<your tenant id>/v2.0 --client_id <Tartan's app id> --claim groups --value <Tartan Admins object id> --role admin
```

Your people sign in again and find `northgate` in `tartan me show`.

## 3. Bring in the client's devices

Make a fleet code for an RMM push, or one device code per computer ([Device codes and fleet pushes](device-codes.md)):

The `northgate` Owner's passkey approves it.

```sh
tartan code create --profile northgate.json --org northgate --kind fleet --cap 40 --ttl 168h
```

## 4. Invite the client's own people

The `northgate` Owner's passkey approves it.

```sh
tartan user invite --profile northgate.json --org northgate --role viewer --name "<their name>" --handle <their handle>
```

The link is shown once: send it to that person only ([Invite people](invite-people.md)).

## Check it worked

- `tartan org show --profile northgate.json --org northgate` shows the organization.
- `tartan idp trust list --profile northgate.json --org northgate` shows your rules.
- A tech of yours runs `tartan me show` and sees `northgate` with the `tech` role.
- `tartan device list --profile northgate.json --org northgate` lists the client's devices as they join.

## Next

- [Techs, just in time](techs-just-in-time.md)
- [Zones and firewall rules](firewall.md)
- [Add a site](add-site.md)
