Set up single sign-on with Microsoft Entra ID
Single sign-on (SSO) lets the people in your organization sign in to Bricks with their Microsoft work account instead of a Bricks password. You set it up yourself in Bricks, in six steps, and you can turn it off again at any time.
Who can do this: an administrator of your Bricks organization. Some steps also need someone who is an administrator in your company's Microsoft Entra ID (see Before you start).
How single sign-on works in Bricks
Single sign-on has four settings. You choose one in step 4, and step 6 turns on the last one.
- Off: everyone signs in with a password, as before.
- Testing: only the test link uses single sign-on. Use this while you set things up; nobody else is affected.
- Optional: people whose email address is on one of your verified domains are sent to Microsoft when they sign in. Passwords and emailed codes still work.
- Required: everyone in your organization must sign in through Microsoft. Only the bypass accounts you choose can still use a password.
Before you start
You'll need:
- Your Microsoft Entra directory (tenant) ID. It's on the Overview page of the Microsoft Entra admin center, and looks like
00000000-0000-0000-0000-000000000000. - The email domains your people sign in with, for example
acme.com. - A Microsoft Entra administrator for steps 2 and 3: someone with the Global Administrator, Privileged Role Administrator, Application Administrator or Cloud Application Administrator role. If they use Privileged Identity Management and the role is only eligible, they need to activate it before steps 2 and 3. That person also needs a Bricks account in your organization; invite them first if they don't have one.
- An email address in Entra for everyone who will use single sign-on. See Make sure every user has an email address in Entra below. This is the most common reason a sign-in fails.
Set it up
In Bricks, go to Settings → Organization → Single sign-on. The page shows six steps and how many are done. Open a step to see its controls.
Step 1: Connect Microsoft Entra ID
- Enter your Directory (tenant) ID.
- Enter your Email domains, separated by commas (for example
acme.com, acme.co.uk). You can claim up to 20. - Select Connect.
Each domain starts as Pending. A domain becomes Verified in one of two ways:
- By sign-in: when someone signs in through single sign-on with an address on that domain, and Microsoft confirms your tenant has verified the domain. This happens automatically in step 3.
- By DNS: select Verify with DNS, add the TXT record Bricks shows you at your DNS provider (name
_bricks-sso.<your domain>), then select Check DNS. DNS changes can take a while to appear; if the record isn't found, try again later.
A domain already verified by another Bricks organization can't be claimed.
Step 2: Approve the app in your Microsoft tenant
A Microsoft Entra administrator at your company approves the Bricks app once. Select Open Microsoft approval. Microsoft shows a Permissions requested screen for Bricks, published by withBricks LLC (a verified publisher). Bricks asks only to read each user's basic profile: name and email address.
After they select Accept, Microsoft returns to the Bricks sign-in page with Microsoft approval is complete. If they cancel, the page says Microsoft approval wasn't completed; open the approval again from this step.
This step shows as done once the test sign-in in step 3 works.
Step 3: Sign in through the test link
If single sign-on is Off, select Start testing first. The test link only works in Testing or later.
Then a Microsoft Entra administrator (one of the roles above) opens the Test link and signs in with Microsoft. That sign-in proves your organization controls the tenant. Until it happens, only tenant administrators can sign in through single sign-on, and you can't move past Testing.
Use Copy to send the link to your administrator if it isn't you.
Step 4: Choose who signs in with single sign-on
Choose Off, Testing or Optional (see How single sign-on works above). Stepping down or turning it off takes effect within a minute.
Account creation: turn on Create an account on first single sign-on sign-in if you want people at your domains to get a Bricks account the first time they sign in with Microsoft. New accounts get your organization's default role, shown under the switch. If your organization requires administrator approval for new users, new accounts wait for your approval before they can use Bricks.
With account creation off, only people who already have a Bricks account in your organization can sign in through single sign-on.
Step 5: Add a bypass account
Bypass accounts can still sign in with a password when single sign-on is required. They're how you get back in if Microsoft sign-in ever stops working.
- Select Add me, or choose someone under Add someone. Only people in your organization can be bypass accounts.
- Save the Break-glass sign-in link (use Copy). If single sign-on stops working, a bypass account signs in there with a password and steps single sign-on back down.
At least one bypass account must be an active administrator of your organization, since only an administrator can turn single sign-on back off. Other bypass accounts are marked Doesn't count.
Step 6: Make single sign-on required (optional)
When you're ready, select Make it required. If something is still missing, the step is locked and lists what's needed, for example a verified domain, a bypass account, or the tenant administrator's sign-in from step 3.
Once single sign-on is required, everyone in your organization signs in through Microsoft, and only bypass accounts can use a password (through the break-glass link). To undo it, select Step back to Optional.
Make sure every user has an email address in Entra
Bricks signs someone in only when Microsoft sends their email address and confirms it's on a domain your tenant has verified. A user who has only a sign-in name, and no email address in Entra, can't sign in through single sign-on.
To check a user in the Microsoft Entra admin center:
- Go to Users → All users and open the user.
- Open Properties and look at Contact information → Email.
If Email is empty, either give the user a mailbox (a Microsoft 365 license with Exchange), or fill in the Email field. The address must be on a domain that's verified in your tenant and claimed in step 1.
What happens the first time someone signs in
- They already have a Bricks account with the same email address in your organization: single sign-on connects to that account.
- They don't, and account creation is on: Bricks creates their account in your organization with the default role. If your organization requires approval for new users, they see that their account is waiting for approval.
- They don't, and account creation is off: they can't sign in. Invite them in Bricks first.
Troubleshooting
"Your account isn't set up for single sign-on. Contact your administrator." after signing in with Microsoft:
- Check the user has an email address in Entra on one of your claimed domains (see above). This is the most common cause.
- Check they have a Bricks account in your organization, or that account creation is on.
- Check the email domain is listed in step 1.
"Microsoft approval wasn't completed": the approval in step 2 was cancelled or refused. A Microsoft Entra administrator needs to open it again from step 2 and select Accept.
"Single sign-on isn't available for this link": the link is for a connection that's turned off, or doesn't exist. Use the sign-in page instead.
Locked out after making single sign-on required: a bypass account signs in through the break-glass link with a password and steps single sign-on down to Optional or Off.
Still stuck? Contact Bricks support through the chat on this site.