Setting up how users sign in
Setting up how users sign in
Choose how each person signs in to DataMagik when you add them, and change it later if you need to.
The choices
| Sign-in method | Use it for | DataMagik password? | How it is set up |
|---|---|---|---|
| Password | People without a company Microsoft or Google account, or when your company does not use single sign-on. | Yes. The person chooses it. | Add the user. They are emailed an invite to choose their password. |
| Password, plus Microsoft or Google | People who want to sign in with their work account but keep a password as well. | Yes. It cannot be reset by email once Microsoft or Google is connected. | Add the user as for a password. They connect Microsoft or Google on their Security settings page. |
| Single sign-on only | Companies that want people to sign in with Microsoft or Google, with no DataMagik password at all. | No. | Add the user with Single sign-on only ticked. They are emailed a setup link, or just choose Sign in with Microsoft or Google. |
| Service account | Shared or system logins with no person or mailbox behind them, such as a kiosk or an integration. | Yes. An administrator sets it. | Add the user, mark it Service account, then set its password. |
| Automatic account for your domain | Letting anyone at your company's email domain create their own account the first time they sign in. | No. | Turn on auto-provisioning in Company Security. Accounts start with no roles. |
Whichever you choose, the person's roles decide what they can see and do. Tick them when you add the user, as described on the Company User Manager page. Managing users requires the Security tier.
Password
- In the Company User Manager, click Add User.
- Enter the name, a username and the email address the invite should go to. Tick their roles and save.
- The person is emailed an invite. Its link lets them choose their own password; it works once and expires in 7 days. You never choose or see their password.
- Click the user in the User Manager to Send invite again or Revoke invite. Sending a new link ends the earlier one.
- Email a password-reset link sends a link to choose a new password. It works once and expires in 24 hours. People can also use Forgot password on the sign-in page.
- Changing a user's email or username ends any invite or reset link they had not used yet. Send a new one to the new address.
- If your company requires multi-factor authentication, they set it up the first time they sign in with their password.
Password, plus Microsoft or Google
A person who has a password can also connect their work Microsoft or Google account, and then sign in either way.
- Single sign-on must be on in Company Security, with the provider allowed.
- Add the user with a password as above.
- After signing in, they click their name at the top of the page to open their profile, open Security Settings, and choose Connect with Microsoft or Connect with Google.
- Signing in with Microsoft or Google uses that provider's own multi-factor check. Signing in with the password still asks for DataMagik's.
- Once connected, the User Manager shows a Microsoft SSO or Google SSO badge, and DataMagik does not email them password-reset links. They change the password themselves under Security Settings, or sign in with the provider.
- They can Unlink the provider under Security Settings and go back to the password alone.
Single sign-on only
The person signs in only with their company Microsoft or Google account. There is no DataMagik password to choose, reset or leak.
Before you start: single sign-on must be on in Company Security, with the providers your people use. The Single sign-on only box appears in the User Manager only when it is.
Add a single sign-on only user
- Click Add User. Enter the name, username and email. Use the person's work email, the one they sign in to Microsoft or Google with.
- Tick Single sign-on only, tick their roles, and save.
- The user is created with their roles, and an invitation is emailed to them. The message at the top of the User Manager says who it went to and when the link expires. The user shows an SSO setup pending badge until they first sign in.
What the person does. The invitation gives their username and has a Set up sign-in with Microsoft (or Google) button. They can finish in either of two ways:
- With the link. The button opens a DataMagik page with a Sign in with Microsoft (or Google) button. They sign in with their work account and land in DataMagik. The link works once and expires after 7 days.
- Without the link. They go to the DataMagik sign-in page and choose Sign in with Microsoft or Sign in with Google. DataMagik finds their account when the email their provider gives matches the account's email or username, under the conditions below.
From then on they always sign in with that button. After their first sign-in they also receive the DataMagik welcome email.
Which account they must sign in with. The provider's email must be the account's email. It may instead be the account's username when the username is an email address at one of your approved single sign-on domains, for example a username such as jsmith@yourcompany.com for someone whose email is john.smith@yourcompany.com.
Without the link, the email's domain must also be one of your approved single sign-on domains (Company Security), and:
• Google: the account must be a Google Workspace account of that domain. A personal Google account made on the address is refused.
• Microsoft: the account must come from your company's trusted Microsoft organization. Anyone can create a Microsoft organization that claims your email addresses, so DataMagik trusts only the one you name. See below.
Otherwise the sign-in page asks the person to use the setup link in their invitation.
Set your trusted Microsoft organization
- Sign in to DataMagik with your own work Microsoft account (an administrator of your company).
- Open Company Security. Under single sign-on, find Trusted Microsoft organization.
- The page shows You sign in with Microsoft organization and its ID. Click Use this, then Save. You can also paste the Tenant ID from the Microsoft Entra admin center.
Once it is set, Microsoft sign-ins through a setup link must also come from that organization, so a forwarded or leaked link cannot be used from anywhere else. We recommend setting it whenever your company allows Microsoft sign-in. A Site uses its parent company's trusted organization.
Switch an existing user to single sign-on only. Open the user, tick Single sign-on only and save. Saving:
- removes their DataMagik password, so any password-reset or invite link they had stops working;
- signs them out everywhere, because those sessions were opened with the password;
- emails them the setup link if they have not connected Microsoft or Google yet. If they already have, nothing is sent and they keep signing in the same way.
The message after saving lists each of these, with the number of sessions ended and where the email went. You cannot switch your own account; ask another administrator. API keys the person created are not affected.
Good to know
- Signing in with a username and password to a single sign-on only account shows "This account signs in with single sign-on and has no DataMagik password". It is not counted as a failed attempt, so it never locks the account.
- Forgot password sends nothing to these accounts, and the User Manager does not offer Email a password-reset link for them.
- They cannot unlink Microsoft or Google under Security Settings, because they would have no way to sign in.
- Resend the setup link: click the user and choose Send SSO setup link. The earlier link stops working. You can send one a minute and five a day. Revoke invite withdraws the open setup link.
- Changing the user's email or username ends the open setup link. Send a new one to the new address.
- Switch back to a password: clear Single sign-on only, save, then choose Send invite so they can choose a password.
Service account
A service account is a shared or system login with no person or mailbox behind it, such as a shop-floor kiosk or an integration. It is the only kind of user whose password an administrator sets.
- Add the user as for a password. Use an address your team controls; the invite that is sent can be ignored.
- Open the user, tick Service account, and save.
- Open the user again. Enter the new password under Change password and save. Setting it ends every session of the account and any link it had. The password is never shown again or written to any log.
- Service accounts get no welcome email and show a Service account badge in the User Manager.
- Give a service account only the roles its job needs. If its API key sends email, for example from n8n, it needs DataMagik - Builder, which the built-in Automate Builder role includes.
- A service account cannot also be single sign-on only.
Automatic account for your domain
With auto-provisioning on, anyone whose Microsoft or Google email is at one of your approved single sign-on domains gets an account the first time they choose Sign in with Microsoft or Google. You do not add them first.
- Turn it on in Company Security under SSO Auto-Provisioning, after DataMagik has approved your domain.
- New accounts have no roles until you give them some in the User Manager.
- Someone you have already added as single sign-on only is matched to that account instead, as described above, rather than getting a second one.
Troubleshooting
| What the person sees | What to do |
|---|---|
| "You signed in to Microsoft as … but this DataMagik account is for …" | They signed in with a different account than the one invited, often a personal one. Sign out of Microsoft or Google, open the link again and use the work account. If their email in DataMagik is wrong, correct it and resend the setup link. |
| "To finish setting up Microsoft sign-in, open the setup link in your DataMagik invitation email" | The sign-in could not be trusted without the link. Have them use the setup link, or set your trusted Microsoft organization. |
| "This Microsoft account is not from the Microsoft organization your company trusts" | They signed in with a Microsoft account from another organization. Use the work account, or check the trusted organization ID in Company Security. |
| "More than one DataMagik account is waiting for this email" | Two single sign-on only accounts have this address as their email or username. Correct one, then have the person use their setup link. |
| "That Microsoft account already signs in to another DataMagik account" | Their provider account is connected to a different DataMagik user. Contact DataMagik support to move it. |
| The invite or setup link says it has expired, was used or was replaced | Send a new one from the User Manager. |
| The Single sign-on only box is missing | Single sign-on is off for your company. Turn it on in Company Security. |