Organization and access
Enterprise SSO
With enterprise SSO, your people sign in to NightVision through your own identity provider, and your directory decides who is a member and which groups they are in. NightVision uses WorkOS for this, so it works with any provider that supports SAML or OIDC, including Okta, Microsoft Entra ID, Google Workspace, PingFederate and Auth0.
There are three parts. You can set up SSO alone, or add directory sync as well.
| Part | What it does |
|---|---|
| Domain verification | Proves your company owns its email domain. Do this first. |
| Single sign-on | People sign in through your identity provider instead of a NightVision password. |
| Directory sync | Your directory adds and removes NightVision members and keeps your directory groups mirrored in NightVision. |
Before you start
Section titled “Before you start”- Email support@nightviz.ai with the address of the IT admin who will do the setup.
- NightVision prepares your organization and sends that admin a link to the setup portal.
The admin needs access to your DNS settings and to your identity provider’s admin console.
Open the setup portal
Section titled “Open the setup portal”The link opens a setup portal hosted by WorkOS. It lists the three tasks and marks each one Done as you finish it.

Verify your domain
Section titled “Verify your domain”Verify your domain before you configure SSO or directory sync. Repeat these steps for each domain your people sign in with.
-
Select Verify your Domain and enter the domain.

Enter the domain your people use in their email addresses. -
Add the TXT record the portal shows to your domain’s DNS settings.

Copy the record name and content into a new TXT record at your DNS provider. -
Wait for the portal to detect the record. This usually takes under a minute for a new record.

The domain is verified. Select Done.
Configure single sign-on
Section titled “Configure single sign-on”-
Select Configure Single Sign-On and choose your identity provider. If yours is not listed, choose Custom SAML or Custom OIDC.

Choose your identity provider, or a custom SAML or OIDC connection. -
Follow the steps the portal shows for your provider. They walk you through creating the application in your identity provider, mapping attributes, assigning users and testing the connection.

The portal gives step-by-step instructions for the provider you chose. This example is Okta. -
When the test passes, the portal marks Configure Single Sign-On as Done.

Single sign-on is configured.
Configure directory sync
Section titled “Configure directory sync”Directory sync is optional. Turn it on when you want your directory to add and remove NightVision members and to keep your groups in step.
-
Select Configure Directory Sync and choose your directory provider. If yours is not listed, choose Custom SCIM.

Choose your directory provider, or Custom SCIM. -
Follow the steps the portal shows. Assign the people and push the groups that should exist in NightVision.

Directory sync instructions for the provider you chose. This example is Okta. -
Wait while the directory connects. The first sync can take a few minutes. You can close the tab and come back.

The first sync can take a few minutes. -
The portal marks Configure Directory Sync as Done.

SSO and directory sync are both configured.
If a step fails, email support@nightviz.ai.
What your users see
Section titled “What your users see”Signing in
Section titled “Signing in”- On the NightVision sign-in page, the person chooses single sign-on. They can also go straight to
https://app.nightviz.ai/sso. - They enter their work email and select Continue with Single Sign-On.
- NightVision sends them to your identity provider. After they sign in there, they land in the dashboard.
If your organization has no members yet, the first person to sign in through SSO from a verified domain becomes its Org Admin. Everyone after that must already be a member, added in Settings > Members or by directory sync.
nightvision login in the CLI opens the same sign-in in a browser, so SSO users sign in to the CLI the same way.
Sign-in messages
Section titled “Sign-in messages”| Message | What it means |
|---|---|
| Single sign-on is not enabled for your organization. | The person belongs to an organization, but none of theirs uses SSO. They sign in with their email instead. |
| We could not find an active organization membership for that email address. | The person is not a member yet. Add them, or assign them in your directory. |
| We could not find an organization for that email domain. | The domain is not verified for any organization. Check the domain verification step. |
| You do not have access to this organization. | The person signed in at your identity provider but is not a member of the NightVision organization. |
| Your account has been deactivated. | The person was removed or deactivated in your directory. |
Members come from your directory
Section titled “Members come from your directory”Once directory sync is on, your identity provider decides who is a member:
- A person you assign to NightVision in your directory becomes a member. A person you remove or deactivate there loses access.
- A member who arrives this way, with no role chosen for them beforehand, holds the Scan Operator role across the organization. To give them more in a project, grant a role to one of their groups. See Directory groups.
- On Settings > Members, the add, edit and remove controls are turned off, and a note says members are managed through the identity provider.

If you disconnect the directory, the controls on Settings > Members work again.
Directory groups
Section titled “Directory groups”Every group you push from your directory appears in Settings > Members > Groups with the source Directory.

Your identity provider decides who is in a directory group. NightVision decides what each group can reach.
- Give a directory group access. Select Members and access on its row and grant it a role on a project, the same way as a manual group. See Give a group a role on a project.
- Change who is in it. Add or remove people in your identity provider. A person shows up in the group here after they have signed in to NightVision at least once.
- Rename or delete it. Do this in your identity provider. The Rename and Delete actions are disabled for directory groups.
A group marked Inactive no longer exists in your directory, so it grants no access. NightVision keeps its project grants, and they apply again if the group comes back. The same happens to every directory group if you disconnect the directory.
You can still create manual groups alongside directory groups, for example for contractors who are not in your directory.
Related pages
Section titled “Related pages”- Members, roles and groups for the four roles and how project access works.
- Projects for sharing a project with one person.