# Team, roles and SSO

> Invite people, set roles, enforce single sign-on and provision accounts with SCIM.

Source: https://usewrit.app/docs/users-teams/

Your Writ Cloud account belongs to an organization. Everything you build, the credits and the plan are
shared by its members. You invite teammates, give each one a role, and on Scale and up you can sign
everyone in through your company’s identity provider.

## Sign up and keep your account safe

Create an account at [app.usewrit.app](https://app.usewrit.app/register?lang=en) with an email and a
password, or with Google or GitHub. A password needs at least 8 characters, with a lowercase letter, an
uppercase letter and a number. You can sign in later with a passkey, or with **Sign in with SSO** if your company set it up. Writ Desktop works without any account.

In **Settings**, **Security**:

- **Two-factor authentication**: after your password, you enter a 6-digit code from an authenticator app. Save the recovery codes it gives you; they let you back in if you lose your phone.
- **Passkeys**: sign in with Touch ID, Face ID, Windows Hello or a security key, without a password. A passkey also counts as the second factor.
- **Active sessions**: every device and browser signed in to your account. Sign out one with **Disconnect**, or all others with **Disconnect other sessions**.

**Connected accounts** links Google or GitHub to an account you made with a password, so you can
sign in either way.

## Invite your team

-

1. **Open Team**

Go to **Team** and click **Invite a member**. Only the owner and admins can send invitations.

-

2. **Enter the email and the role**

Type the person’s email address and pick **Admin** or **Member**, then click **Send the invitation**. Writ emails them a link.

-

3. **They accept**

The person opens the link and signs in to a Writ account with that same email address, which must be
verified. Once they accept, they see your organization when they sign in.

> **limit:** The person must already have a Writ account, or create one with the invited email address before accepting. An invitation expires after 7 days.

Each member uses one seat, and you count as one. Seats per plan:

|  | Free | Starter | Pro | Growth | Scale | Enterprise |
| --- | --- | --- | --- | --- | --- | --- |
| Seats | 1 | 1 | 3 | 10 | Unlimited | Unlimited |

To remove someone, open the member’s menu on **Team** and choose **Remove from workspace**. Their access ends at once: Writ signs them out of this organization on every device and
revokes their tokens for it.

## Roles

An organization has one owner. Everyone else is an admin or a member. The owner changes roles from the
member’s menu with **Change role**.

| What they can do | Owner | Admin | Member |
| --- | --- | --- | --- |
| View and run APIs, workflows and triggers | Yes | Yes | Yes |
| Create and edit API keys | Yes | Yes | No |
| Publish and change REST endpoints | Yes | Yes | No |
| Invite and remove members | Yes | Yes | No |
| Change, pause or cancel the plan | Yes | Yes | No |
| Change organization settings | Yes | Yes | No |
| Set up SSO and SCIM | Yes | Yes | No |
| Change a member’s role | Yes | No | No |
| Hand the organization to another member | Yes | No | No |

## Single sign-on and SCIM

Scale and up With single sign-on (SSO), your team signs in through your identity provider:
Okta, Microsoft Entra, Google Workspace, or any provider that speaks SAML 2.0 or OpenID Connect. The owner
and admins set it up in **Security & SSO**. It takes about 15 minutes, once.

-

4. **Connect your identity provider**

Under **Connect your identity provider**, pick **SAML 2.0** or **OpenID Connect**. For SAML, copy the values Writ shows (such as the ACS URL and the SP Entity ID) into a new app in your provider, then paste back its metadata XML; Writ
fills in the fields from it. For OpenID Connect, enter the **Issuer URL**, **Client ID** and **Client secret**.

-

5. **Test it**

Click **Test sign-in** and sign in with your provider account in the window that opens.
Writ detects the result by itself.

-

6. **Verify your email domain**

Under **Verify your email domain**, add your company’s domain (such as `example.com`). Writ gives you a TXT record: add it at your DNS provider, then click **Verify**. People with an address in a verified domain are sent to SSO when they sign in.

-

7. **Enforce SSO, if you want**

**Enforce SSO** blocks password sign-in for everyone in your verified domains, so SSO becomes
the only way in. Do this only after a successful test sign-in.

> **careful:** Enforcing a connection that does not work locks your whole team out. Run Test sign-in first, and test again after you change the connection.

Under **Advanced: sign-in options & directory provisioning** you can set the **Default role for new users** (the role someone gets the first time they sign in through SSO),
name the attributes your provider sends (such as the **Groups attribute**), and choose whether
to **Allow IdP-initiated login**. Leaving that last one off is safer: sign-ins must then start
from Writ.

### Provision accounts with SCIM

With **Directory provisioning (SCIM)**, your provider creates, updates and deactivates Writ users
for you. Copy the **SCIM 2.0 base URL** into your provider’s SCIM connector, click **Generate token**, and paste the token there too. The token is shown only once. **Revoke** it to stop provisioning.

## Organization settings and your data

### Respect robots.txt

**Settings**, **Overview** has an organization switch, **Respect robots.txt**. It is off by default. When it is on, Writ refuses to save a page to monitor or
a workflow start page if that site’s `robots.txt` forbids it to all crawlers. Pages a run opens
later are not checked, and a site whose `robots.txt` cannot be read is allowed. Scribe has its
own **Respect robots.txt** switch for the sites it reads, under **Site access**.

### Keep my free builds private

The same page has **Keep my free builds private**, for owners and admins. A free build (one of
your plan’s included Writ AI builds, or one made with your own AI assistant) is submitted to the
Marketplace for review once its functions pass a proof run. Turn this on to keep your builds private
instead. It is available on Starter and up and during a free trial; on Free, free builds are always
submitted.

### Change your email, export or delete your account

These are in **Settings**, **Danger Zone**:

- **Change email address**: Writ sends a confirmation link to the new address and tells both addresses about the change.
- **Export account data**: **Prepare an archive** downloads a JSON file of your workflows, runs and billing history. Secrets are never exported in plain text.
- **Delete account**: type DELETE to confirm. A member leaves the organization, which keeps its data. An owner with other members first chooses **Transfer ownership and leave**, or **Delete the entire organization**, which erases all data for every member.

> **careful:** Deleting an account or an organization is permanent. Writ cannot recover the data afterwards.

To move workflows to another organization instead, use **Settings**, **Import & export**: it makes an encrypted `.writ` package of the workflows you pick.

## Next

-
- [Credits and plans](https://usewrit.app/docs/billing-wallet): Seats, credits and what each plan includes.
-
- [API keys and OAuth](https://usewrit.app/docs/authentication): Keys with scopes, OAuth apps, rotation and revocation.
-
- [Sign-ins and secrets](https://usewrit.app/docs/personas): The site logins and secrets your team shares.
-
- [Alerts and notifications](https://usewrit.app/docs/notifications): Who gets told what, and on which channel.
