Skip to content

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”
ModuleM3 — Spaces, sign-in and the operator hand-offs
After this session you canPrepare single sign-on and a directory import so completely that the operator can connect them right the first time, and check both afterwards.
TimeFacilitated: 51 min · On your own: 48 min
Before you startM3-S2: your choice of sign-in options for the staff domain.
Go deeperSign-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”

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:

WhoDoes what
YouDecide 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 operatorAdds the provider to the sign-in service from your worksheet and links it to your domains

Your decisions (part C of the worksheet):

  1. 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.
  2. The button text (Northwind gives Sign in with Northwind), or a logo.
  3. The domains where the button appears.
  4. 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.
  5. 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.
  6. 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>/redirect

The 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 groupoffboard leavers yourself (M2-S4) and have them disabled in the directory
create groupscreate and link each group first
give accessgive the groups their access, base level included, before the first run
bring back archived users, or import people without an email addresscheck 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.

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

  1. Open Administration › Organization › Users Groups and add a group: Group Name Northwind Drivers, Group Description Filled by the directory import from NW-Drivers. Save.
  2. 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.)
  3. Open Access Management › Group Permissions, choose Northwind Drivers, Add Permission, choose Shipment Board in Object, and save.
  4. Open User Permissions for Ziad Mourad and check that nothing changed for him: he is not in the new group.
  5. Note that the group has no fields for the directory link: that goes into the checklist.

On paper or in a text file

  1. Fill in the single sign-on worksheet, parts A and C, for Northwind:
#ItemYour value
A1Sign-in server address
A2Redirect address registered in Entra
C1Provider name
C2Button text
C3Domains where the button appears
C4Existing accounts: imported / link once with password / neither
C5New people: refuse / create automatically
C6If created automatically: User Group, Space, rule
C7Update name and email at every sign-in?
C9After testing, turn off passwords on these domains?
  1. Fill in the directory hand-off checklist, parts B and C:
#ItemYour value
B1Import everyone, or only a group or a condition
B2Directory groups to mirror → Osos group
B3Add the directory-link fields to the Users Group entity
C1Schedule for people
C2Schedule for group membership
C3Name mapping checked
C4Who to tell when a run fails
  1. 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 seeWhat to do
Shipment Board is not offered for the new groupCheck 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 worksheetDelete it. The secret travels separately, through a secure channel.
Model answer

Single sign-on worksheet

#ValueWhy
A1The address from the operatorExactly as the operator wrote it
A2A1 with https, then the path from the pattern in the concept, with C1 (entra) as the provider nameBuilt from the pattern, no trailing slash
C1entraShort, lowercase, unlikely to change
C2NorthwindShows Sign in with Northwind
C3The staff domain only (name and host)The partner domain keeps passwords (M3-S2)
C4Link once with password for today’s staffThey were added by hand, not imported; drivers imported later are recognized automatically
C5RefusePeople arrive through the directory import, not by signing in
C6Not usedNobody is created automatically
C7YesThe directory wins for names and addresses
C9Yes, staff domain, only after the tests pass with at least one administratorKeep a way in

Directory hand-off checklist

#Value
B1Only the members of NW-Drivers for now (or a condition such as department, if that is how Entra holds them)
B2NW-Drivers → Northwind Drivers
B3Yes: add the directory-link fields to the Users Group entity, then link Northwind Drivers
C1Every hour
C2Every hour, after the people import
C3Yes: check first and last names are not swapped on the first run
C4You, 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.

  1. “Can I just make everyone who signs in with Microsoft an account automatically? It’s simpler.”
  2. “Your checklist mirrors one directory group. HR says the whole company should be imported.”
  3. “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
  1. 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.
  2. 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.
  3. 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”
PracticeChoose one answer.

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?

  1. Explanation for A

    ✗ Incorrect

    Not this one: an expired secret would stop single sign-on for everyone, not one person. See Single sign-on: who does what.

  2. Explanation for B

    ✓ Correct

    Correct: with “neither”, people with an existing password account are refused by the button. Choose “link once with password”, or import them. See Single sign-on: who does what.

  3. Explanation for C

    ✗ Incorrect

    Not this one: they would sign in and then see “You don’t have access”, not be refused. See What the system level shows.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

A driver left the company and was removed from NW-Drivers in Entra a week ago. He is still in Northwind Drivers. Why?

  1. Explanation for A

    ✗ Incorrect

    Not this one: even a working import never removes anyone. See The directory import: what it does and does not do.

  2. Explanation for B

    ✗ Incorrect

    Not this one: a wrong identifier would leave the group empty, not keep one person. See Preparing a group.

  3. Explanation for C

    ✓ Correct

    Correct: deactivate him and remove him from the group yourself (M2-S4). See The directory import: what it does and does not do.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

An imported driver asks for a password reset. What do you do?

  1. Explanation for A

    ✗ Incorrect

    Not this one: imported people have no Osos password to reset. See The directory import: what it does and does not do.

  2. Explanation for B

    ✓ Correct

    Correct: his password lives in the directory, not in Osos. See The directory import: what it does and does not do.

  3. Explanation for C

    ✗ Incorrect

    Not this one: that does nothing to a password held in the directory. See What you can do for them.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

How do you send the operator the Entra client secret?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the worksheet is shared and kept; a secret in it leaks. See Single sign-on: who does what.

  2. Explanation for B

    ✗ Incorrect

    Not this one: chats are copied and kept on many devices; deleting does not undo that. See Single sign-on: who does what.

  3. Explanation for C

    ✓ Correct

    Correct: the secret travels on its own, and its expiry is the date single sign-on would stop. See Single sign-on: who does what.

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.