Single sign-on (SSO)
Let people sign in to mTime with your organisation’s own identity provider, and restrict a workspace so that it is the only way in.
To connect your Microsoft Entra ID tenant, see Set up Microsoft sign-in.
Overview
mTime can sign people in with Google, Microsoft or Visma Connect, and a workspace can be restricted to just one of them.
mTime is a client of your identity provider, not an identity provider itself. When someone signs in with Microsoft, the whole of the sign-in — username, password, multi-factor and any conditional access rules you apply — happens in your own tenant, and the sign-in is recorded in your own logs. There is no federation between your tenant and ours, and no user accounts are created on our side.
How it works
- The person chooses Sign in with Microsoft — or Google, or Visma Connect.
- mTime sends them to the provider, where they authenticate under your own rules.
- The provider sends them back, and mTime reads four things: a stable user id, an email address, a full name and a first name. Nothing else — no mail, no calendar, no files, no directory access.
- mTime looks the person up. If they do not already exist in mTime, the sign-in is refused.
- mTime issues its own session.
Signing in does not grant access
A valid sign-in at your identity provider gives access to nothing on its own. The person must already exist as a user in mTime, and users are created in only three ways: by SCIM provisioning from your identity provider, automatically from employment data, or by an administrator inviting them. There is no self-service sign-up.
A first sign-in also needs the invitation sent to the provisioned address. The person can open the link in the invitation email, or simply sign in with your provider: when the provider confirms the address as verified and it is exactly the invited one, the invitation is accepted on the way in, even after the emailed link has expired. A look-alike or unverified address is never enough, and an invitation you have deleted cannot be accepted.
So there are two layers, and they are kept apart. Your identity provider decides who someone is. The user record in mTime decides what they may do: it holds roles and employment, never a credential.
Configuration
An owner or Workspace Administrator restricts a workspace under , using two settings together:
- Single sign-on provider — the one provider this workspace accepts
- Allowed email domains
— the domains your organisation owns, such as
ku.dk
Both are required. A provider on its own is not a restriction, so mTime will not save one without at least one domain.
Once it is on, for that workspace:
- Everyone signs in with that one provider, and their mTime account address must be at one of the listed domains.
- Every other way in is refused: passwords, passkeys, the other providers, and any session created before the restriction. That includes mTime support staff you have added as users.
- Invitations tell people which provider to sign in with. You can only invite addresses at the listed domains.
Before you switch it on
You — the administrator making the change — must already have signed in with the chosen provider, and your own mTime address must be in one of the listed domains. Otherwise mTime refuses the change and tells you which half is missing.
It asks this of you rather than of any administrator because saving the change signs you out too. This way, the person who switches the restriction on can always sign back in and switch it off again.
What happens when you switch it on
Everyone in the workspace is signed out, you included, and signs back in with the chosen provider.
The same happens whenever you change the restriction so that it lets fewer people in: switching to a different provider, or removing a domain. Adding a domain signs nobody out.
Switching it off
Clear the Single sign-on provider . The restriction is lifted straight away and nobody is signed out. You can leave the domain list in place, so switching it back on later is a single setting.
It applies to us as well
There is no override inside mTime: mTime support cannot reach a restricted workspace either. If you want our help inside the workspace, an administrator switches the restriction off, and on again afterwards.
A shortcut that signs people in
You can give everyone a link — for example a browser shortcut you push to every employee — that opens mTime through your identity provider, with no click on the sign-in page:
https://mtime.app/login?sign_in_with=microsoftUse google or visma instead of microsoft for those providers. To open a particular page instead of the dashboard, add it with to, for example https://mtime.app/login?sign_in_with=microsoft&to=/timesheet.
- Someone who is already signed in goes straight into mTime. The identity provider is not contacted.
- Someone who is not signed in goes to the provider, exactly as if they had chosen Sign in with Microsoft on the sign-in page, and lands in mTime afterwards.
- The link can only name a provider mTime offers, and only open a page inside mTime. Anything else shows the normal sign-in page.
The link starts the sign-in; it does not replace it. Your provider still authenticates the person under your own rules, and everything under Signing in does not grant access above still applies — including the first invitation.
mTime remembers the provider
After someone has signed in with a provider, the browser remembers it. The next time they open mTime without a session — from the shortcut, a bookmark or any other link — they go straight to that provider, with no click.
The browser forgets it, and shows the normal sign-in page next time, when:
- the person signs out on purpose,
- a sign-in with the provider fails or is cancelled, including when the workspace refuses that provider,
- the person signs in another way, for example with a link sent by email.
A session that simply runs out keeps it. This applies in the browser only; the mTime app keeps its usual sign-in screen.
Troubleshooting
| Issue | Solution |
|---|---|
| Password sign-in stopped working | Expected once the workspace is restricted. Use the provider shown on the sign-in page. |
| The restriction will not save | You have not signed in with that provider yet, or your own mTime address is not in the listed domains. The message says which. |
| One person is refused although they signed in at the provider | Their mTime account address is not at one of the listed domains — it is that address that counts, not the one the provider shows. Change their address in mTime, or add the domain. |
| Everyone is refused and your provider is down | Fix the provider. If you cannot, contact mTime support — see the warning above. |
| Our supplier cannot help us inside the workspace | Turn the restriction off, and on again when they are finished. |
| Somebody cannot add Microsoft to an account they already have | Sign in first, then add the provider under Security in account settings. |
For your IT and security team
| Question | Answer |
|---|---|
| Which model is this? | A multi-tenant application registration. Consent creates an enterprise application in your own tenant, which you own, can target with conditional access, and can remove at any time. No guest accounts are created anywhere. |
| Is it federation? | No. There is one identity provider — yours — and one application using it. No trust relationship exists between your tenant and ours. |
| Is SAML supported? | No. Authentication is OpenID Connect / OAuth 2.0 only. |
| What is read about a user? | sub, email, name and given_name. No application permissions are requested. |
| How is the domain checked? | An exact, case-insensitive comparison of the domain part of the person’s mTime account address. No wildcards and no subdomains. It scopes the workspace; it is not a proof of domain ownership. |
| What stops someone from another tenant? | The provisioning requirement and the invitation. A provider sign-in only accepts an invitation when the provider vouches for exactly the invited address, so a look-alike address gains nothing. |
| Can roles come from groups? | Yes, but a group arrives with no permissions at all; an administrator grants them. The Owner role can never be assigned by provisioning. |
| How long do sessions last? | 30 days from last activity. Deactivating a user through SCIM ends their sessions immediately. |