M3-S3 — Single sign-on and the directory import: decide and hand off
Section titled “M3-S3 — Single sign-on and the directory import: decide and hand off”| Module | M3 — Spaces, sign-in and the operator hand-offs |
| After this session you can | Prepare single sign-on and a directory import so completely that the operator can connect them right the first time, and check both afterwards. |
| Time | Facilitated: 51 min · On your own: 48 min |
| Before you start | M3-S2: your choice of sign-in options for the staff domain. |
| Go deeper | Sign-in methods & single sign-on · Users from your company directory · For operators: Identity server |
◆ Orientation (1 min) — Two jobs you cannot do alone
Section titled “◆ Orientation (1 min) — Two jobs you cannot do alone”Northwind keeps all its staff in Microsoft Entra ID, the company directory. It wants two things: staff sign in with their company account, and its eighty drivers arrive in Osos without anyone typing them in. Neither can be done in Administration: the operator connects both. But the operator cannot decide for Northwind. You make the decisions and write them down, so the work is done once, correctly.
▤ Concept (5 min) — Single sign-on and the directory import
Section titled “▤ Concept (5 min) — Single sign-on and the directory import”Single sign-on: who does what
Section titled “Single sign-on: who does what”With single sign-on, people select a button such as Sign in with Northwind and use the company account they already have. Setting it up is shared work:
| Who | Does what |
|---|---|
| You | Decide the rules, fill in the worksheet, choose the domains, and test |
| Your Entra administrator (often you) | Registers Osos as an application in Microsoft Entra and creates a client secret |
| The operator | Adds the provider to the sign-in service from your worksheet and links it to your domains |
Your decisions (part C of the worksheet):
- A provider name, in lowercase, such as
entra. It becomes part of the sign-in address registered in Entra, so changing it later means changing Entra too. - The button text (Northwind gives Sign in with Northwind), or a logo.
- The domains where the button appears.
- People who already have an account: recognized automatically if they were imported from the directory; or asked once for their current password to link the accounts; or refused.
- People with no account yet: refused, or created automatically into a User Group and a Space you choose, optionally only for addresses ending in your company’s domain.
- Keep profiles up to date: copy the name and email from the directory at every sign-in, or only when the account is created.
Entra needs the address to send people back to after they sign in. It is built from the sign-in server’s address (the operator gives it to you) and your provider name:
https://<sign-in server address>/ext-auth/<provider name>/redirectThe client secret is sent to the operator separately, through a password manager or another secure channel, never in the worksheet or a chat. Put its expiry date in your calendar: when it expires, single sign-on stops working until a new secret is sent.
After the operator’s work you test: in a private window on the chosen domain, check the button, sign in with a test account, try an existing account and a brand-new one, and sign out (it signs you out of Microsoft too). Only then, if you want single sign-on to be the only way in, turn off Support Local Sign in and Support Passkey on that domain (M3-S2: keep a way in).
The directory import: what it does and does not do
Section titled “The directory import: what it does and does not do”The operator can schedule an import that reads the directory, for example every hour:
- People: everyone in scope who has an email address becomes a user, or is updated. Names and addresses follow the directory, which always wins.
- Group membership: for each Osos group you prepared and linked to a directory group, the directory group’s members are added.
What it does not do stays your job:
| It does not… | So you… |
|---|---|
| remove anyone, from Osos or from a group | offboard leavers yourself (M2-S4) and have them disabled in the directory |
| create groups | create and link each group first |
| give access | give the groups their access, base level included, before the first run |
| bring back archived users, or import people without an email address | check who is missing after each run |
Imported people get no set-password email and have no Osos password: they sign in through single sign-on. Set up single sign-on before the import, or at the same time.
Preparing a group
Section titled “Preparing a group”For each directory group to mirror: create the Osos group (a Users Group), link it to the directory group by its identifier (its object ID in Entra ID), and give it its access. Out of the box, the group form has no fields for the link: they are added once to the Users Group entity by a builder or the operator, so ask for them in the checklist.
⛏ Lab (22 min) — Northwind’s two hand-offs
Section titled “⛏ Lab (22 min) — Northwind’s two hand-offs”Goal. Prepare the drivers’ group in the product, then fill in the single sign-on worksheet and the directory hand-off checklist for Northwind.
Northwind’s brief.
- Staff are in Microsoft Entra ID. The operator will send you the sign-in server address; in this exercise you write it in A1 as the address from the operator.
- Staff should see Sign in with Northwind on the staff domain only.
- Today’s staff accounts were all added by hand in Osos. From now on, drivers come from the directory group NW-Drivers, and no one else should get an account by themselves.
- Names and addresses must follow the directory. People and memberships update every hour.
- After testing, passwords are turned off on the staff domain.
In the product
- Open Administration › Organization › Users Groups and add a group: Group Name Northwind Drivers, Group Description Filled by the directory import from NW-Drivers. Save.
- Open Access Management › Admin Permissions › Groups › Add, and give Northwind Drivers Restricted. (Drivers also get View through Northwind Everyone, because their addresses are at Northwind; this lets the group be listed wherever a group needs a system level.)
- Open Access Management › Group Permissions, choose Northwind Drivers, Add Permission, choose Shipment Board in Object, and save.
- Open User Permissions for Ziad Mourad and check that nothing changed for him: he is not in the new group.
- Note that the group has no fields for the directory link: that goes into the checklist.
On paper or in a text file
- Fill in the single sign-on worksheet, parts A and C, for Northwind:
| # | Item | Your value |
|---|---|---|
| A1 | Sign-in server address | |
| A2 | Redirect address registered in Entra | |
| C1 | Provider name | |
| C2 | Button text | |
| C3 | Domains where the button appears | |
| C4 | Existing accounts: imported / link once with password / neither | |
| C5 | New people: refuse / create automatically | |
| C6 | If created automatically: User Group, Space, rule | |
| C7 | Update name and email at every sign-in? | |
| C9 | After testing, turn off passwords on these domains? |
- Fill in the directory hand-off checklist, parts B and C:
| # | Item | Your value |
|---|---|---|
| B1 | Import everyone, or only a group or a condition | |
| B2 | Directory groups to mirror → Osos group | |
| B3 | Add the directory-link fields to the Users Group entity | |
| C1 | Schedule for people | |
| C2 | Schedule for group membership | |
| C3 | Name mapping checked | |
| C4 | Who to tell when a run fails |
- Compare both with the model answer.
Check.
- Northwind Drivers exists, with Restricted at the system level and Shipment Board.
- Your A2 is built exactly from A1 and C1, with
https, no trailing slash. - Your C4 and C5 match the brief: existing staff link once; new people are refused.
- Your B2 maps NW-Drivers to Northwind Drivers, and B3 asks for the link fields.
- Nothing secret is written in either form.
Pass condition. The drivers’ group is ready to receive people with the access they need, and both forms match the model answer in substance, with any difference explained by the brief.
If something goes wrong
| What you see | What to do |
|---|---|
| Shipment Board is not offered for the new group | Check the group was saved, and select it again in Select Group. |
| You are unsure whether drivers are “existing” or “new” | Drivers who are imported first are recognized automatically; anyone not imported is new, and the brief says new people are refused. |
| You wrote the client secret into the worksheet | Delete it. The secret travels separately, through a secure channel. |
Model answer
Single sign-on worksheet
| # | Value | Why |
|---|---|---|
| A1 | The address from the operator | Exactly as the operator wrote it |
| A2 | A1 with https, then the path from the pattern in the concept, with C1 (entra) as the provider name | Built from the pattern, no trailing slash |
| C1 | entra | Short, lowercase, unlikely to change |
| C2 | Northwind | Shows Sign in with Northwind |
| C3 | The staff domain only (name and host) | The partner domain keeps passwords (M3-S2) |
| C4 | Link once with password for today’s staff | They were added by hand, not imported; drivers imported later are recognized automatically |
| C5 | Refuse | People arrive through the directory import, not by signing in |
| C6 | Not used | Nobody is created automatically |
| C7 | Yes | The directory wins for names and addresses |
| C9 | Yes, staff domain, only after the tests pass with at least one administrator | Keep a way in |
Directory hand-off checklist
| # | Value |
|---|---|
| B1 | Only the members of NW-Drivers for now (or a condition such as department, if that is how Entra holds them) |
| B2 | NW-Drivers → Northwind Drivers |
| B3 | Yes: add the directory-link fields to the Users Group entity, then link Northwind Drivers |
| C1 | Every hour |
| C2 | Every hour, after the people import |
| C3 | Yes: check first and last names are not swapped on the first run |
| C4 | You, and Northwind’s IT contact |
The A-part items from Entra (tenant ID, client ID, the secret’s expiry, the permissions) and the directory’s A-part (an app registration with application permissions to read users and groups, a different one from single sign-on) come from your Entra administrator.
✳ Discussion (13 min) — The hand-off meeting
Section titled “✳ Discussion (13 min) — The hand-off meeting”You meet the operator to hand over both forms. They raise three points.
- “Can I just make everyone who signs in with Microsoft an account automatically? It’s simpler.”
- “Your checklist mirrors one directory group. HR says the whole company should be imported.”
- “After go-live, who checks that it worked: you or me?”
With a facilitator. One person plays the operator, two defend the forms; swap roles after each point (6 min). Then the room agrees the best answer to each (3 min).
On your own. Write your answer to each point, then compare with the model answer.
Model answer
- Not for Northwind. Automatic accounts would let anyone in the directory create an account by signing in once, including people who should never work in Osos. Northwind brings people in through the import, where you control the scope, and refuses everyone else. If automatic accounts are ever wanted, they go into a chosen group and space, with a rule such as the company’s email domain.
- Scope is a decision, not a default. Importing the whole company gives no one access by itself, but it creates accounts you then have to offboard by hand, because the import never removes anyone. Start with the people who need Osos (the drivers), and widen the scope when a real need appears.
- Both, in order. The operator confirms the run completed and shares any errors; you check the result from the product: the expected people and names, the group members, one person’s access in User Permissions, and one real sign-in through single sign-on.
✓ Practice (5 min) — Check your understanding
Section titled “✓ Practice (5 min) — Check your understanding”The operator connected single sign-on yesterday. An existing employee selects Sign in with Northwind and is refused, although the button works for others. Your worksheet said “neither” for existing accounts. What happened?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
A driver left the company and was removed from NW-Drivers in Entra a week ago. He is still in Northwind Drivers. Why?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
An imported driver asks for a password reset. What do you do?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
How do you send the operator the Entra client secret?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
↺ Recap (1 min) — After Module 3 you can
Section titled “↺ Recap (1 min) — After Module 3 you can”After this module you can plan and set up a space and hand its address to the operator, explain the license in three facts, choose sign-in options per domain without locking anyone out, support people with their account security, and prepare single sign-on and the directory import so the operator connects them right the first time.
Next. Module 4 is the daily running of the tenant: working hours and holidays, message templates, the monitoring screens that tell you what happened, and the look of the platform.