Setting Up SSO Login — SAML · Google Workspace
How to let your team sign in to Lenet with their company accounts (Okta · Microsoft Entra ID · Google Workspace), starting from the Pro plan. Covers verified-domain authentication, SAML values and connection testing, enabling SAML SSO, auto-provisioning, turning off email and password (SSO required), session length, and identity provider-specific settings. Keywords: SSO, SAML, single sign-on, Okta, Entra ID, Azure AD, Google Workspace, enforce SSO, domain verification, JIT.
Updated
Your team members can use their company accounts instead of a Lenit password to sign in to the admin screen. If your company blocks an account, that person also loses access to Lenit, and new employees can join without an invitation. Set this up under Settings > Advanced > SSO·SAML.
What is team member SSO?
What can SSO do?
Team members can sign in to Lenit with a single company account, and your company controls who is allowed in.
- Sign in with a company account — Team members sign in through your company's login system (identity provider, IdP) and are then returned to Lenit. They don't need to remember a separate Lenit password.
- SSO required — If you turn off email and password sign-in, team members on your company domain can only sign in through SSO. When you block a departing employee's company account, their Lenit access also ends within the session length you have set.
- Auto sign-up — People on your company domain can join the team without an invitation the first time they sign in with SSO (optional).
How do SAML SSO and Google Workspace login differ?
Both let people sign in with a company account, and you can turn both on at the same time.
| Method | Best for | What to set up |
|---|---|---|
| Google Workspace login | Companies that use Google Workspace for company email | Allowed domain verification only (already on by default) |
| SAML SSO | Companies that manage employee accounts with an identity provider such as Okta or Microsoft Entra ID (you can also connect Google Workspace as a SAML app) | Allowed domain verification, plus entering SAML values and running a connection test |
If both are on, team members can sign in with whichever they prefer. Personal Gmail accounts don't count as Google Workspace login. If you turn off Google Workspace login, team members on a verified domain can't sign in with a Google account or an Apple account (turn it off when you standardize on one SAML provider such as Okta). If you turn off SAML SSO or Google Workspace login, people who were signed in with that method are logged out within 15 minutes and can sign in again with the remaining method.
User identification, which recognizes logged-in customers in the widget and public boards, is a different feature. See the User identification (SSO) and customer attributes (traits) article. The SSO in this article only refers to team members signing in to the Lenit admin screen.
Which plans include it?
It is available from paid Pro plans (Pro and Business). It is not available during the free trial, but if you subscribe to Pro during the trial, you can use it right away.
- Google Workspace login, SAML SSO, allowed domains, auto sign-up, and session length are available from the Pro plan.
- Email and password, and Require two-factor authentication under Settings > Advanced > Security, are available on all plans.
- On the Free and Starter plans and during the free trial, these items show a PRO badge and are locked. Use View plans in the "SSO is available from the Pro plan" notice to upgrade.
Before you start
What do you need to set this up?
- Workspace owner — Only the owner can make changes. Admins can view the settings, and "Only the owner can make changes." appears below the card.
- Permission to edit your company domain's DNS — Domain ownership is verified with a TXT record. You can ask whoever manages DNS to do this for you.
- Administrator rights at your identity provider (if you use SAML SSO) — You must be able to create a SAML app (an Okta administrator, Cloud Application Administrator or higher in Microsoft Entra ID, or a super admin in Google Workspace).
- To turn on Require SSO, also enable two-factor authentication on the owner account. See the Turning on two-factor authentication and recovery codes article.
What is the setup order?
- Allowed domains — Verify your company domain through DNS.
- SAML SSO configuration — Lenit and your identity provider exchange values and run a connection test (skip this if you only use Google Workspace login).
- Turn on SAML SSO
- Auto sign-up (optional)
- Turn off email and password (optional) — Turning this off makes SSO required.
- Session length
Nobody is locked out until you turn off email and password. In the meantime, team members can still sign in with a password or with their company account.
Setting it up
Step 1 — How do I verify allowed domains?
Enter your company email domain and add a TXT record in DNS to prove ownership. Google Workspace login and SAML SSO only accept email addresses from the domains you verify here.
- Expand Allowed domains, enter your domain (for example, mysite.com), and click Add domain. It appears in the list as Pending verification.
- Copy the Name, Type (TXT), and Value shown below it using the copy buttons, and add them as a TXT record in your domain's DNS settings.
- Click Check DNS record. When it is confirmed, "You've verified the mysite.com domain." appears, and the domain is listed as verified with a green dot.

- You can add several domains (for example, your headquarters domain and a subsidiary's domain).
- Public email domains such as gmail.com or naver.com can't be added, and a verified domain can belong to only one workspace.
- DNS changes can take up to 48 hours to take effect. If you see "We couldn't check the DNS record," wait a while and click again. For other messages, see the Troubleshooting SSO — connection test and sign-in error messages article.
Step 2 — What do I enter for SAML SSO configuration?
You enter two values that Lenit provides into your identity provider, and then enter two values that your identity provider provides into Lenit. Expand SAML SSO configuration. If you only plan to use Google Workspace login, skip to "Companies that only use Google Workspace" below.
| Direction | Field on screen | Description |
|---|---|---|
| Lenit → identity provider | ACS URL (Single sign-on URL) | The address where the identity provider sends sign-in results. Copy it from Values to enter in your identity provider. |
| Lenit → identity provider | Entity ID (Audience URI) | The identifier for this Lenit connection. |
| Identity provider → Lenit | Identity provider SSO URL | The sign-in address of your identity provider (starts with https://). |
| Identity provider → Lenit | Public certificate | Paste the signing certificate that starts with -----BEGIN CERTIFICATE----- (if you are rotating it, you can enter up to two). |
- With the ID provider, have the Name ID sent as the email address and the attributes as firstName · lastName. For field names, see "ID provider-specific settings" below.
- If you add a public certificate, the subject · expiration date · SHA-256 fingerprint are shown below it. When expiration approaches, Expiring soon is displayed.
- Under Advanced, there are ID provider Entity ID (optional) (if left blank, it is filled in on the first connection test) and Allow sign-in directly from the ID provider screen (on by default — like the Okta tile, you can press Lenit on the ID provider screen to get in).
Step 3 — How do I run the connection test?
Press Save and test connection. The values are saved, and you sign in to the ID provider once in a new window to confirm the settings are correct.
- Press Save and test connection.
- In the "SAML SSO settings test" window, press Authenticate with ID provider. When the ID provider sign-in opens in a new window, sign in with the company account assigned to the Lenit app (the email on the verified domain).
- When "Connection confirmed" appears in the new window, close the window. On the original screen, "Connection confirmed. You can now turn on SAML SSO." is shown and the status becomes Connection confirmed.


- The connection test passes only when you sign in with an email on a verified allowed domain. If no domain is verified yet, the values are saved and "Settings saved. Please verify a domain under 'Allowed domains' above, then run the connection test." is shown — complete Step 1 first.
- If the new window does not open, press "Didn't the new window open? Click here to open it." If there is no result within 3 minutes, run the test again.
- If it fails, the reason is shown after "Connection test failed." The document SSO troubleshooting — connection test and sign-in error messages lists the cause and fix for each message.
Step 4 — When can I turn on SAML SSO?
Once the connection test passes and at least one domain is verified, you can turn on the SAML SSO toggle. When it is on, team members on verified domains can sign in with SAML SSO. At this stage, email and password sign-in still works as before.
- If the conditions are not met, under the toggle you will see "To turn on SAML SSO, first pass the connection test in the SAML SSO settings below." or "To turn on SAML SSO, first verify at least one allowed domain."
- If you later change the ID provider SSO URL · public certificate · ID provider Entity ID, a "Change SAML settings?" dialog appears. Saving turns SAML SSO off, so pass the connection test again and then turn it back on. If you only add or remove a certificate while keeping the SSO URL the same (certificate rotation), or only change Allow sign-in directly from the ID provider screen, SAML SSO does not turn off.
- To turn it off, check the number of affected team members in the "Turn off SAML SSO?" dialog and press Turn off.
Step 5 (optional) — How does auto-join work?
Expand Auto-join and turn on Automatically join the team on first sign-in (Just-in-Time). Then a person on a verified domain who signs in via SSO for the first time joins the team without an invitation. It is off by default; when it is off, only invited people can get in.
- Default role for new members — Admin (uses a seat) (default) or Read-only member. Each admin uses one seat, and if all seats are full, people cannot automatically join regardless of role. After joining, you can change the role on the members screen.
- If all seats are full, people cannot automatically join. They see "All workspace seats are full."
- When it is off and someone who was not invited signs in via SSO, they see "You have not been invited to this workspace," and no Lenit account is created.
- People with a pending invitation accept it together with their SSO sign-in, regardless of auto-join.
- Signing in via SSO in the mobile app does not join the team — in the app, only accounts that already belong to a team can sign in.
Step 6 (optional) — How do I make team members sign in only via SSO?
Turn off the email and password toggle. There is no separate enforcement switch. All of the conditions below must be met before you can turn it off; if they are not, a to-do list with action buttons appears under the toggle.
- You have verified at least one allowed domain (Verify domain).
- You have turned on SAML SSO (connection test passed), or Google Workspace sign-in is on and you have signed in once with a company Google account (Set up SAML SSO).
- You have turned on two-step verification for the owner account (Turn on two-step verification).
- You are on the Pro or Business plan, or in a free trial.
When the conditions are met, the "Turn off email and password sign-in?" dialog appears. Check "N members who will be signed out · N members outside SSO (will keep signing in as before)" and press Turn off email and password to save. SSO required is shown next to the card title.

What changes when email and password are turned off?
Team members on verified domains can only sign in via SSO (SAML SSO or a company Google account). The moment you turn it off, those team members are signed out and must sign in via SSO from then on.
- Those members cannot sign in with a password, use password reset emails, or sign in with personal Google or Apple accounts. The sign-in screen shows "This workspace requires sign-in via SSO."
- Owners can still sign in with their current method (email and password or Google sign-in) as a fallback — so they can get in and fix things if the SSO connection breaks.
- Team members with a different email domain (such as external partners) are counted as members outside SSO and continue signing in as before.
- If someone has no account with the ID provider, or the ID provider email differs from their Lenit account email, they may be unable to sign in. Before turning this off, have team members each sign in via SSO once.
- To revert, turn the toggle back on and press Turn on again in "Turn email and password sign-in back on?" Team members can immediately sign in as before, and the session length limit is also removed.
Step 7 — What is session length?
In the Session length card, after the time you choose under Re-authenticate after (8 hours · 24 hours (default) · 7 days) has passed, team members on verified domains must sign in via SSO again. This helps prevent people who have left the company from staying connected for long.
- This applies only when email and password login is turned off. The timer starts from the moment of login and does not extend while the user is active.
- If you are signed in to the identity provider, you can get in directly without re-entering your company password.
- Other team members and owners will be logged out after 30 days of inactivity, as before. To set an automatic logout for when a screen is left open and unattended, configure Auto logout under Settings > Advanced > Security.
Companies using only Google Workspace
Can I allow sign-in only with company Google accounts, without SAML?
Yes. If you manage employee accounts with Google Workspace, you do not need to create a SAML app.
- Verify your company's Google Workspace domain under Allowed domains (step 1).
- Make sure the Google Workspace sign-in toggle is on (on by default).
- Have a person who uses a company Google account on that domain (owners included) sign in to Lenit once with Continue with Google on the login screen. This sign-in allows Lenit to verify the company Google login.
- Turn off the Email and password toggle (step 6).
After that, team members on the verified domain will sign in only with their company Google accounts. If a work email is entered under Sign in with SAML SSO on the login screen, it will also lead to Google sign-in.
Settings for each identity provider
What should be matched across all identity providers?
- Name ID — the team member's email address (format: EmailAddress). It must match the email on their Lenit account, and the domain must be verified as an allowed domain.
- Attributes — firstName and lastName. These are used as the name when an account is first created through automatic sign-up.
- Signing — leave the signing settings at the identity provider's defaults. Responses without a signature are not accepted.
- Not supported — assertion encryption and single logout (SLO) are not supported. Do not enable them in your identity provider.
- Users (or groups) who will use Lenit must be assigned to the Lenit app in the identity provider before they can sign in.
What do I enter for Okta?
In the Okta Admin Console, go to the Applications menu, then Create App Integration → SAML 2.0 to create the app (for example, name it Lenit).
| Okta field | Value to enter |
|---|---|
| Single sign-on URL | Lenit's ACS URL (Single sign-on URL) — keep "Use this for Recipient URL and Destination URL" checked as is |
| Audience URI (SP Entity ID) | Lenit's Entity ID (Audience URI) |
| Name ID format | Email address format |
| Application username | The team member's email |
| Attribute Statements | firstName = user.firstName, lastName = user.lastName |
After creating the app, in the SAML setup instructions on the Sign On tab, enter Identity Provider Single Sign-On URL into Lenit's ID provider SSO URL, X.509 Certificate into Public certificate, and Identity Provider Issuer into ID provider Entity ID (optional). On the Assignments tab, assign the users or groups who will use Lenit. Do not enable Assertion Encryption.
What do I enter for Microsoft Entra ID?
In the Microsoft Entra admin center, go to Entra ID > Enterprise apps > All applications, select New application to create an app not in the gallery, and choose Single sign-on → SAML.
| Entra field | Value to enter |
|---|---|
| Identifier (Entity ID) | Lenit's Entity ID (Audience URI) |
| Reply URL (Assertion Consumer Service URL) | Lenit's ACS URL (Single sign-on URL) |
| Attributes & Claims › Name ID | Format: Email address; Source attribute: user.mail (the default works if the UPN is the email) |
| Attributes & Claims › Add new claim | firstName = user.givenname, lastName = user.surname |
The first two fields are in Basic SAML Configuration. In Lenit, enter the contents of the Certificate (Base64) file under SAML Certificates into Public certificate, the Login URL into ID provider SSO URL, and the Microsoft Entra Identifier into ID provider Entity ID (optional). Assign the users who will use it under Users and groups.
What do I enter for Google Workspace (SAML app)?
Sign in to the Google Admin console as a super admin, then go to Apps > Web and mobile apps → Add app → Add custom SAML app to create the app. Enter the values in the order the screens show.
| Google step · field | Lenit field |
|---|---|
| Google Identity Provider details · SSO URL | → ID provider SSO URL |
| 〃 · Certificate | → Public certificate |
| 〃 · Entity ID | → ID provider Entity ID (optional) |
| Service provider details · ACS URL | ← ACS URL (Single sign-on URL) |
| 〃 · Entity ID | ← Entity ID (Audience URI) |
| 〃 · Name ID | Email format; keep the default value (primary email) |
| Attribute mapping · Add mapping | First name → firstName, Last name → lastName |
When finished, under the app's User access, select On for everyone (or the organizational units you want to include). Changes may take up to 24 hours to take effect.
Things to know
How should I tell team members about this?
Team members can enter their work email under Sign in with SAML SSO below the login screen to be taken to company sign-in. For sign-in on the web, desktop app, and iOS app, and for how to accept an invitation, share the document Signing in with your company account (SSO) — Guide for team members.
When does Lenit access end if I block a company account?
Access ends when the session length has passed. Even if you block the account in the identity provider, an already active Lenit session may remain until the set time (8 hours, 24 hours, or 7 days). While email and password login is enabled, the session length does not apply.
- To cut off access immediately, remove the person from the team under Settings > Workspace > Members. They will no longer be able to enter this workspace.
- MCP connections (AI coding tools) are not disconnected just by blocking the account in the identity provider. You must remove the team member to disconnect them.
- SCIM (automatic removal of departing employees and automatic account creation) is not yet available. Remove departing employees directly in Lenit.
What other limitations should I be aware of?
- There is one SAML connection per workspace. A verified domain can belong to only one workspace.
- There is no feature that maps identity provider groups to Lenit roles (group mapping). Roles are set by the default role for automatic sign-up and on the team members screen.
- There is no separate Microsoft sign-in button. Microsoft Entra ID is connected through SAML SSO.
- Owners keep their current sign-in method even when email and password are turned off, so turning off email and password requires owners to have two-factor authentication enabled.
- If you downgrade your plan below Pro (Starter or Free), SSO sign-in stops, and the restrictions from turning off email and password no longer apply. Team members sign in with email and password or Google. Your settings are kept, not deleted, and will apply again when you return to Pro or higher.
Frequently Asked Questions
Can I keep both SAML SSO and Google Workspace sign-in turned on?
Yes. With both turned on, team members on a verified domain can sign in with either SAML SSO or their company Google account. If you want sign-in only through SAML, such as Okta, turn off Google Workspace sign-in. If you leave it on, Google and Apple sign-in for team members on a verified domain stay blocked even while email and password is turned on.
Can I keep email and password and use SSO as well?
Yes. Turning on SAML SSO alone does not lock anyone out. Team members can still sign in with a password as before, or with their company account. If you want company-account sign-in only, turn off Email and password.
Can I set up SSO during the free trial?
No. SSO is available starting with the Pro plan. During the trial, SSO and SAML settings are locked. If you upgrade to Pro during the trial, you can set them up right away.
Can admins change the SSO settings?
No. Only owners can change them. Admins can view the settings, and "Only owners can change this." is shown below the card. Changes are recorded in Settings > Advanced > Audit log.
What happens to team members who were already signed in when I turn on SSO?
Turning on the SAML SSO toggle alone changes nothing. When you turn off Email and password, team members on a verified domain are signed out and sign in with their company account from then on. Team members whose email domain differs from the owner's (external partners) are not signed out.
What happens to signed-in team members if I turn off SAML SSO or Google Workspace sign-in?
Anyone signed in with that method is signed out within 15 minutes and must sign in again using the remaining methods (email and password, or another SSO method). The same applies to owners. Team members signed in with other methods are not affected.
My identity provider certificate is about to expire.
Keep the current certificate in the Public certificate field, paste the new certificate below it (up to two), and click Save and test connection. Leave the SSO URL as it is. Adding or removing certificates does not turn off SAML SSO. You can close the connection test window that appears next. With both certificates registered, you can switch to the new certificate at your identity provider without interrupting sign-in. After the switch, delete the old certificate. If an expired certificate remains, the settings will not save.
Can I use multiple domains?
Yes. Add multiple domains under Allowed domains and verify each one with DNS, for example your main company domain and a subsidiary domain. All verified domains use the same SAML connection and Google Workspace sign-in settings. While email and password is turned off, you cannot remove the last remaining verified domain.
Can the same domain be used in two workspaces?
No. A verified domain can belong to only one workspace. If you add a domain that another workspace has already verified, you will see "This domain has already been verified by another workspace." If the domain is yours and you don't recognize the other workspace, contact Lenet.
Can accounts be created and removed automatically with SCIM?
Not yet. Instead, you can turn on Auto-join. With it on, people with a company domain join without an invitation the first time they sign in with SSO. When someone leaves, block their account at your identity provider and their access ends within the session length. To end access immediately, remove them under Settings > Workspace > Members.