---
title: "Restrict a tool to colleagues: Google Workspace or Microsoft 365"
url: https://while.sh/en/guides/internal-tool-company-sign-in/
author: "Aloïs Oddon, co-founder of Nextmap"
updated: 2026-11-21
---

# Restrict a tool built with AI to your colleagues, with Google Workspace or Microsoft 365 (2026)

Your AI built you a useful tool, and it must serve your colleagues only: a leave tracker, a sales board, an internal directory. With while, they use it with their email account, Google Workspace or Microsoft 365, with no extra account and no sign-in page to write.

A tool built with AI often starts on your screen, then your colleagues want it. The problem shows up right away: **how do you give it to them, and nobody else**, without creating accounts by hand or writing a sign-in page? That is exactly what while does with Google Workspace or Microsoft 365.

> **The short version.** Your AI puts the tool on while and restricts it to your company. Your colleagues use it with their email account, Google or Microsoft, and a stranger who lands on the address only sees the sign-in page.

## What your colleagues see

When they arrive at the tool, each person clicks **"Continue with Google Workspace"** or **"Continue with Microsoft 365"**, then signs in as they do every morning. Nobody creates an account, and nobody has one more password to remember.

Your tool, for its part, **receives the name and email of the person signed in**. It can show each person their own requests, or keep track of who approved what, without a line of sign-in code.

## Restricting the tool, in three steps

1. **Ask your AI to put the tool on while.** Claude, ChatGPT, Cursor or another one, as soon as it connects to while.
2. **Ask it to restrict the tool to your company.** It requests access for your domain, like `@your-company.com`, and a person in your organization approves it in while.
3. **Link your Google Workspace or Microsoft 365 to while once.** An admin declares while in the Google Cloud console or in Microsoft Entra, then proves the domain of your addresses (source 1). It is done once, for all your tools.

> You, to your AI: Put this tool on while, and restrict it to people in the company.

### What your AI does

It adds one line to `while.yaml`, the small file that describes the tool, to make it internal:

```yaml titre="while.yaml"
apiVersion: while/v1
project: leave-tracker
services:
  - name: web
    port: 3000
    access: internal
    health:
      path: /
```

Once access is approved, **everyone in the company uses it from their first sign-in**, with nothing for you to send to each person.

## Restricting the tool to a single team

Not everyone in the company needs everything. A payroll board is for accounting, a route tracker for drivers.

**With Microsoft 365**, once Microsoft Entra is set to send groups, ask your AI to restrict the tool to a group rather than the whole domain. **Only the people in that group use it**, and a new hire uses it as soon as they join the group.

<figure class="illus"><img src="/illustrations/interne-groupe-1200.webp" srcset="/illustrations/interne-groupe-768.webp 768w, /illustrations/interne-groupe-1200.webp 1200w" sizes="(min-width: 48rem) 46rem, 100vw" width="1536" height="1024" loading="lazy" decoding="async" alt="Restricting a tool to a single team with Microsoft 365: only the chosen group, like accounting, uses the tool on while, other teams have no access" /><figcaption>Access is given to the whole domain, or, with Microsoft 365, to a single group.</figcaption></figure>

> You, to your AI: Restrict the tool to the accounting group.

**With Google Workspace**, Google doesn't send groups at sign-in. Restrict the tool to a few people instead. Each one signs in with their Google account, then clicks **"Request access"** on the tool's page. An admin approves in one click, and the access has no end date.

## Which plan

Sign-in with an email account, Google Workspace or Microsoft 365, comes with **the Pro and Enterprise plans**, for the whole team, however many people. To start small, the Free plan lets **up to 3 people** use the tool, each with a while account.

## And for someone outside

A contractor who signs in with Google or Microsoft can get access with their email address. For a client who has neither, create [an access link with a password](/en/guides/share-app-with-password/), valid for 1, 7 or 30 days, with no account to create.

## What while keeps for you

- **The tool's data** is backed up every day, and can be restored to any point in the last 14 days if needed, once a person has approved.
- **The credentials for your other software** [stay in while](/en/security/), and your AI never sees them.
- **The history** keeps who gave which access, and when.

Your tools are hosted in France by Nextmap. To compare with Claude artifacts, ChatGPT Sites and Cursor Apps, which all ask your colleagues for an account with the AI, read our comparison of [ways to share a tool built with AI](/en/comparisons/share-tool-claude-chatgpt-cursor-2026/).

## Try it with your tool

To try it, give this message to your AI. The trial is **free, with no sign-up**, and your tool has its address **in 3 minutes**.

```text titre="The message to give your AI"
Read while.sh/agents and help me get started with while.
```

## Sources

1. [Microsoft Learn, Microsoft 365 identity (Microsoft Entra ID)](https://learn.microsoft.com/en-us/microsoft-365/enterprise/deploy-identity-solution-identity-model), 2026-11-18

## Questions

### Do I need to code a sign-in page?

No. Sign-in is already there, and your tool receives the name and email of the person signed in.

### Which plan?

Sign-in with an email account, Google Workspace or Microsoft 365, comes with the Pro and Enterprise plans. On the Free plan, up to 3 people use the tool with a while account.

### Do I have to add each colleague one by one?

No. You give access to your whole domain, like @your-company.com: each person in the company uses it from their first sign-in. With Microsoft 365, you can also give it to a group.

### Can a contractor use it?

Yes, with their email address, if they sign in with Google or Microsoft. Otherwise, with a link and a password you create for them.

### Can my tool know who is signed in?

Yes. It receives the name and email of each person signed in, to show their own requests or record who did what.
