--- url: https://docs.codefox.ai/run-your-company/sign-in.md --- # Choose how people sign in This page lets you, as an Owner, choose the ways people sign in to Foxden Admin and every connected app, and decide who may join your company without an invitation. ## How signing in works People sign in once, in Admin, and every connected app trusts that sign-in. An app connected to Admin shows one button on its sign-in page: **Continue with** followed by your company's name, or **Continue with single sign-on** when the app knows no company name. It sends the person to Admin, then back. Admin offers three ways in. It has no passwords of its own. | Way in | What the person does | What it needs | |---|---|---| | Google | Selects **Continue with Google** and signs in with their Google account | A Google client set up on **Server** › **Connections**, and the switch on | | Microsoft | Selects **Continue with Microsoft** and signs in with their Microsoft 365 work or school account | A Microsoft client set up on **Server** › **Connections**, and the switch on | | Email link | Types their address and selects **Email me a sign-in link**, then opens the link in their mail | An email sender set up on **Server** › **Connections** | The email link works once and expires after ten minutes. It works for people already in your company and for people with a waiting invitation. It does not let anyone join by domain: that needs Google or Microsoft. Some apps also keep a password sign-in of their own, so their people can still get in when Admin cannot be reached. Each app's guide says whether it has one. Admin has no two-step sign-in of its own. When people sign in with Google or Microsoft, any second step their account asks for happens there, before they reach Admin. Setting up the Google and Microsoft clients and the email sender is server work, covered in [Configure your server](/self-host/configure) and [Set up email](/self-host/email). ## Choose which ways in to show 1. Open **Workspace** › **Sign-in**. 2. Under **Ways to sign in**, switch **Google** and **Microsoft** on or off. Each is on until you switch it off. A provider that is not set up yet says **Not set up yet** and links to Connections. 3. Check the **Email link** row. It shows **Set up** while the email sender is set up; it has no switch. 4. Select **Save**. The sign-in page shows your choice from then on, for Admin and every connected app. Keep one working way in while you change another. Admin refuses a choice that would leave nobody able to sign in: "That would leave no way to sign in. Keep Google or Microsoft on, or set up the email sender on Connections first." ## Decide who can join Everyone needs an invitation unless you let your company's email domain join. Joining gives nobody an app: they start with **No access** and you give access on People. 1. Open **Workspace** › **Sign-in**. 2. Under **Who can join**, type your **Company email domain**, for example `company.com`. Leave it blank for invitation only. 3. Switch **Let anyone on this domain join** on to let anyone who signs in with an address on that domain join without an invitation. Leave it off to keep the domain but still require invitations. 4. Select **Save**. Admin refuses to let a public mail domain (such as a free webmail provider) join, because anybody can get an address there. Invite those people one by one instead. The domain Admin admits without an invitation is the one the server was installed with (the server setting `SIGNIN_ALLOWED_DOMAINS`, made from the first Owner's email address). Changing **Company email domain** here to a different domain does not admit that domain by itself. To admit another domain, change that server setting; see [Foxden Admin settings](/reference/settings/admin). ## Signing out A person who signs out of one app can sign out of every app in that browser at once; see [Edit your profile](/run-your-company/your-profile#sign-out-of-every-app). An Admin session lasts 12 hours. ## Troubleshooting The sign-in page names each refusal. The ones people meet most: ### "You need an invitation" The person's address is not on your company's domain. Invite them from [People](/run-your-company/people). ### "This workspace is invite-only" The domain is yours, but **Let anyone on this domain join** is off. Invite them, or switch it on. ### "No access to Foxden Admin" The person signed in successfully but has no level in Admin. That is normal for most people: they use the apps, not the console. Their own profile and assistant pages still work for them. ### "This console is not open to that address" The address is not on an admitted domain and has no invitation. Invite them. ### "That address is already in use" An account with this address exists and is linked to a different Google or Microsoft account. The person signs in with the account they used before, or with the email link. ### "Wrong account for this invitation" The person signed in with a different address from the one the invitation names. They sign out and sign in with the named address. ### "That Microsoft account can't sign in here" Microsoft accepts only a work or school account that belongs to your organization (not a guest account), on a domain your organization has verified with Microsoft. ### "That sign-in link no longer works" Email links work once and expire after ten minutes. Request a new one. ### "That address belongs to an agent" Agents never sign in. They use a key or a client an Owner issues; see [Agent identities](/connect/agent-identities).