# Security overview

> Who can get into your workspace, how invites, domains, SSO and SCIM keep it that way, and where to see what happened.

Source: https://docs.ligament.ai/guides/identity/security/

This page sums up how people get into a workspace and what stops anyone else. Each section links to the page with the details.

## Who can join

There are four ways in. Apart from an open link, which you create on purpose, none of them works for an address you haven’t invited or a domain you haven’t verified.

| Way in | Who it lets in | Details |
| --- | --- | --- |
| Email invite | Only the invited address, signed in and verified, once | [Inviting people](https://docs.ligament.ai/guides/workspaces/inviting-people/index.md) |
| Domain or open link | Verified addresses at one of your verified domains, or anyone with an open link, until the link expires (30 days at most), runs out of uses or is revoked | [Inviting people](https://docs.ligament.ai/guides/workspaces/inviting-people/index.md#create-a-link-for-a-verified-domain) |
| Verified domain | People who sign up or first sign in with an address at the domain, with the domain’s default role (never owner or admin) | [Verified domains](https://docs.ligament.ai/guides/identity/domains/index.md) |
| SCIM | People your identity provider adds, at your verified domains | [SCIM provisioning](https://docs.ligament.ai/guides/identity/scim/index.md) |

### Invites are bound to the invited address

An invite link isn’t a key that works for whoever holds it. An email invite only works for the person it was sent to: they must be signed in with that address, and the address must be verified (confirmed by email, a magic link, or a sign-in through your workspace’s single sign-on). If the link is forwarded, the person who opens it is refused and sees only the partly hidden address it was meant for, never your workspace’s name, the role or who invited them.

Open links are the exception, so you have to choose one on purpose, confirm a warning, and give it an expiry and a usage limit.

### Verified means verified

Ligament only trusts an email address it has verified:

-   **Email and password:** the person doesn’t join any workspace until they open the link Ligament emails to the address.
-   **Magic link:** opening the emailed link proves the address.
-   **Single sign-on:** your identity provider can only sign people in at the domains your workspace has verified. An assertion for any other address is refused. See [SSO only accepts your own domains](https://docs.ligament.ai/guides/identity/sso/index.md#sso-only-accepts-your-own-domains).

## Keys and tokens

-   An API key can only reach the workspace it was created in, with the scopes it was given. See [API keys](https://docs.ligament.ai/developers/api-keys/index.md).
-   Read-only keys, including `*` and `settings:read`, never see credentials such as invite tokens, webhook signing secrets or domain verification tokens. See [Credentials need an admin scope](https://docs.ligament.ai/developers/api-keys/index.md#credentials-need-an-admin-scope).

## See what happened

**Logs › Audit › Security & sign-ins** lists the security events for your workspace and its members, with who, when and the IP address. Filter by **Event type** and export them as CSV or JSON.

| Event type | Recorded when |
| --- | --- |
| **Signed in**, **Signed out** | Every sign-in and sign-out |
| **Invite accepted** | Someone joined with an invite or link |
| **Invite refused** | Someone opened an invite meant for another address or domain, or a link that was used, expired, used up or revoked |
| **SSO sign-in refused** | Your identity provider asserted an address outside your verified domains |
| **Password reset**, **2FA enabled**, **2FA disabled**, **Passkey added**, **Passkey removed**, **Profile updated**, **Other sessions revoked** | A member changed how they sign in |
| **SSO provider added**, **SSO provider removed**, **OIDC client created** | An admin changed single sign-on |
