Skip to main content
Use Settings > Users & Roles > Automatic Import to decide who becomes a portal user without anyone importing them by hand, and who is disabled when they leave. Every source is listed on one page: your clients’ Microsoft 365 tenants, each PSA connection’s contacts, and the technicians and Microsoft 365 accounts of your own team. This page is for MSP staff.

Before you start

  • You need read access to Users settings to see the Automatic Import tab.
  • Changing anything under Client users needs write access to both Users and Company Users settings. Deleting a rule also needs manage access to Users settings.
  • Changing anything under your own staff, or under Exclusion rules, needs write access to Users settings, and manage access to delete a rule.
  • You can only give a role whose permissions your own role holds. Role lists turn off the roles you cannot give.
  • Create the roles first, on the Roles tab. Client users get a Company role. Staff get a Tenant role.
  • A source appears once its integration is connected and syncing users. Exclusion rules are there whenever a connection syncs users, Google Workspace included. With nothing connected, the page shows No user sources connected and a link to your integrations.
Automatic Import with a Client users panel listing Microsoft 365 with 2 import rules and 2 disable rules and ConnectWise Manage contacts with 2 role rules, a staff panel listing ConnectWise Manage with 14 members, Syncro with 3 technicians and Microsoft 365, each row with a switch, and an Exclusion rules panel with an Add rule button, a built-in row for service, shared and resource accounts and two rules

Sample data: every user source in two panels, each with its switch and a summary of its rules, and the Exclusion rules panel under them.

Automatic Import on a phone with the Client users, staff and Exclusion rules panels stacked, one switch per source and one switch per rule

The same page on a phone. A source's summary sits under its name.

Read the page

The page has three panels: Each source is one row:
  • The switch on the right is Import from this source automatically. On means the source is creating users.
  • The summary beside the switch (under the source’s name on a phone) says what the source does today, for example 2 import rules · 2 disable rules, or Off. Built-in disables are counted. A summary in amber, such as Pick a default role, names something to fix before the source can import.
  • Click the row to open its rules. Import rules decide who becomes a user and with which role. Disable rules decide who is turned off and signed out.
Every rule row has its own switch to pause or resume it, which saves right away, and a ⋯ menu with Edit rule and Delete rule.

Import client users from Microsoft 365

Open Microsoft 365 under Client users. Its rules read the people synced from every client tenant you have connected.
1

Add an import rule

Click Add rule beside Import rules. With no rules yet, turning the source’s switch on opens the same dialog.
2

Name the rule

Enter a Rule name, the first field in the dialog. A Description, under the rule’s settings, is optional.
3

Choose the role and priority

Role for imported users, beside the name, lists your Company roles. With more than one role to give, none is chosen for you: pick the role with the least access these people need. Priority, beside the rule’s Apply this rule switch, decides which rule gives the role when several rules match one person: the lowest number wins.
4

Add the conditions

Choose Match all conditions or Match any condition, then click Add condition for each one. Every condition has a Field, an Operator and a Value. The fields are License, Groups, User type, Account enabled, Display name, Email address, Job title, Department, Office location, Employee type and Employee ID. A new import rule starts with License is assigned. User type is picked from a list, Member or Guest, and compared whole: equals or does not equal.
5

Preview the matches

Click Preview matches to list up to 100 people who match. The results scroll into view under a summary of how many will be imported out of all matches, for example 3 users to import of 12 matches. Each person shows an outcome from Who an import rule skips.
6

Save and apply

Leave Apply this rule on and click Save and apply. Matching people are imported right away. A paused rule is saved but has no effect.
Microsoft 365 source open under Client users, with import rules MSPortal Access group and Licensed Microsoft 365 users showing their conditions, role and match counts, a locked Sign-in blocked in Microsoft 365 row marked Always on, a disable rule for unlicensed accounts, and the link Choose which Microsoft tenants import

Sample data: Microsoft 365 open, with two import rules, the built-in disable and one disable rule.

Microsoft 365 import and disable rules on a phone, each rule with its switch and menu

The Microsoft 365 rules on a phone.

Choose which Microsoft tenants import, under the rules, opens the Microsoft 365 Companies page, where you turn import off for one client’s tenant.

Match by Microsoft 365 license

Use the License field with is assigned or is not assigned. The Value list shows the licenses synced from your clients’ Microsoft 365 tenants, with how many companies have each one. A rule matches that license in every client tenant, so one rule covers all of them. has any and has none need no value: they match an account with at least one license, or with none. For example, import everyone with Microsoft 365 Business Premium, or disable accounts that have no license. Licenses sync once a day. A license condition never judges an account that appeared after the last license sync, so a new hire is not caught by has none before their license is on file.

What an import rule does

  • When it runs: after each Microsoft 365 users sync, and right after you save the rule or turn a tenant’s user import back on.
  • Who it creates: a Company user in the company the person’s Microsoft 365 tenant is connected to, with status Imported and the rule’s role.
  • No invitation: MSPortal sends no email. The Microsoft 365 account is linked to the portal user when the person first signs in. To invite people, use Send Welcome Email on Company Users.
  • Existing users stay as they are: an import rule never changes a portal user’s details or role. An address already used by a portal user in your organization, as a main address or a Microsoft alias, is skipped. With Disable users who stop matching on, it can disable and turn back on the people it matches, as described below.
  • Turning it off keeps users: pausing, editing or deleting an import rule stops new imports only. Users it already imported stay. People a synced rule disabled are turned back on. Remove them from Company Users if they should not have access.
  • The source’s switch: it is on while at least one import rule is active. Turning it off pauses every active Microsoft 365 import rule. Turning it back on resumes the rules it paused, and leaves a rule you paused yourself paused.
  • Per tenant: to stop imports for one client’s Microsoft tenant, turn off user import on the Microsoft 365 Companies page.
Give each group of people one rule. When rules with different roles overlap, each person is imported once, with the role of the rule that has the lowest Priority number.

Who an import rule skips

Keep access in sync with a group

Map a Microsoft 365 group to a role: create an import rule with the condition Groups include the group, choose the role, and turn on Disable users who stop matching. A group named the same in every client tenant (for example MSPortal Access) is matched in all of them. The group list shows how many companies have each group, for example 2 companies. Hover over a group to see which companies they are: up to 12 names, then how many more. When you move through the list with the keyboard, the highlighted group’s companies show under the list. With no groups synced yet, the list says No groups synced from Microsoft 365 yet.
  • Joining the group: a member without a portal user gets one, with the rule’s role. A member who already has a portal user keeps it, and the rule starts keeping their access in sync.
  • Leaving the group: once someone the rule has matched stops matching every rule that keeps access in sync, MSPortal disables their portal user and signs them out after the next Microsoft 365 sync.
  • Rejoining: they are turned back on after the next sync.
  • Pausing or deleting the rule: turning the rule off, deleting it or turning Disable users who stop matching off turns back on the people it disabled, within a few minutes.
  • Roles: people the rule created move to the role of the highest-priority synced rule they match, so a second rule for a Managers group can give managers a different role. Once someone changes a person’s role by hand, the rules leave that role alone. People who were portal users before the rule keep their role.
  • Turning a rule on disables nobody: only people a rule has matched can be disabled by it. People who were never in the group are left as they are.
  • An administrator’s choice wins: if you turn a removed person back on, the rule leaves them alone until they rejoin the group and leave it again.
  • Safety stop: when more than 25 people, and over half of everyone the synced rules track, would be disabled in one pass, MSPortal disables no one and reports it to the MSPortal team. That pattern usually means a group failed to sync, not a mass departure. A disable rule is held the same way when it would suddenly disable more than 25 people and over half of everyone in scope. A change you make yourself is never held: saving a rule applies it, so a rule you just created or edited after checking Preview matches goes through. To apply a held change once you have checked it, open the rule and save it again.

Disable client users from Microsoft 365

Disable rules, in the same Microsoft 365 row, lists everything that turns a client user off.
  • Sign-in blocked in Microsoft 365 is built in and marked Always on. A client user whose Microsoft 365 accounts are all blocked is disabled, and comes back when one is unblocked. See Microsoft 365 users.
  • Add rule creates your own disable rule. It disables, and signs out, each Company user whose Microsoft 365 accounts all match. They are turned back on when they stop matching, or when you pause or delete the rule. If you turn someone back on yourself, the rule leaves them alone until they stop matching and match again. People come back with the status they had before, so an invited person stays invited.
When a mailbox is converted to a shared mailbox, Microsoft 365 keeps the account enabled, so MSPortal cannot treat it as disabled. The licenses are usually removed, though. To disable those people, add a disable rule with License has none, and add User type equals Member so guests are left alone. Click Preview matches first: a portal user is disabled only when all of their Microsoft 365 accounts match.

Create PSA contacts from Microsoft 365

PSA contacts, in the same Microsoft 365 row, lists each ConnectWise, Autotask and Halo connection. Turn on Create and update contacts in a connection to give every client user linked to Microsoft 365 a contact in that PSA. While it is off, the row explains that each person is matched to their PSA contact by email, and a contact is created only for people who have none.
  • Who gets a contact: every active Company user linked to an enabled Microsoft 365 account of their own company. Guests, and accounts an exclusion rule leaves out, never get one. The person’s company has to be mapped to a company in that PSA.
  • Matching existing contacts first: each person gets one contact. MSPortal first looks for their existing contact by email in the mapped PSA company and links it. It creates a contact only for people who have none, and from then on updates that same contact.
  • What is sent: first and last name, job title, business phone and mobile phone. After the first sync, MSPortal sends a field only when Microsoft 365 changes it. It never clears a field and never changes a contact’s email, so an edit made in the PSA stays until Microsoft 365 changes that field.
  • When it runs: after each Microsoft 365 users sync, after you save a Microsoft 365 import rule, and right after you turn the option on.
  • What the row shows: how many contacts are up to date, how many are waiting and how many MSPortal created. When some could not be written, the row says how many failed. Click Show who for each person and the reason.
  • Turning it off: MSPortal stops writing contacts to that PSA. Contacts it created stay in the PSA.
A contact that belongs to another company in the PSA is left alone, and the row lists the person as failed. Move the contact back in the PSA, or move the person to the matching company in MSPortal.

Import client users from PSA contacts

Each ConnectWise, Autotask and Halo PSA connection has its own row under Client users. Its switch turns contact import on for that connection: active contacts of your imported companies become Company users after each users sync.
1

Open the connection's row

Click the PSA’s row, for example ConnectWise Manage. With several connections to one PSA, each row shows the connection’s name.
2

Choose the role for everyone else

Role for everyone else is the role a contact gets when no rule below matches. Choose No default role to import only the contacts a rule below covers, and those of companies that set their own default import role. A company’s own default import role, set on the company, comes first. Because a change here can move contacts onto those company roles, you need to be able to give them too: a role beyond your own permissions on any company’s default refuses the save. Choosing No default role does not take a role away from contacts already imported, unless their company sets its own default: change their role on Company Users.
3

Give some contacts another role (optional)

Click Add rule to map a contact type to a portal role. In ConnectWise and Autotask the rules use contact types. In Halo PSA they use Halo roles and the Important Contact flag. When a contact matches more than one rule, the rule highest in the list wins. Use the arrows to reorder the rules.
4

Turn the switch on

Turn on the row’s switch. Each change saves right away. A change to the switch, a role or a rule starts a users sync, and the page shows Contact import saved. A users sync has started.
ConnectWise Manage contacts source open, with Role for everyone else set to Client user, Portal roles by contact type mapping Primary Contact and Decision maker to Client manager with reorder arrows, and a locked row Contact deactivated or deleted in ConnectWise Manage marked Always on

Sample data: a ConnectWise connection's contacts, with the default role, two contact type rules and the built-in disable.

ConnectWise Manage contact import on a phone with the default role, the contact type rules stacked and the Always on disable row

A PSA connection's contact import on a phone.

  • Changing a role rule updates existing users. Users already imported from that connection move to the role their contact type now maps to.
  • Removing a rule asks first. The confirmation says what happens to the contacts the rule covered: they get the role of the next rule that matches, their company’s default import role, or Role for everyone else. With none of these, they keep the role they have. Roles set by hand stay.
  • Disable rules: Contact deactivated or deleted is built in and marked Always on. A client user whose last active contact in the PSA goes away is disabled and signed out.
  • Users must be syncing. When the connection is not syncing users, or its API key cannot read contacts, the row’s summary reads Not importing and the row says why. Turn on Sync Users under Choose data on the connection’s page. You can still turn the import off here.
  • Changing who gets a role checks every role. Reordering, adding or removing a rule, changing the default role and turning the import on can all hand a role to new people, so each of those saves needs you to be able to give every role in the list.
  • The PSA’s own page links here. On the connection’s Choose data task, Contact Auto-Import shows On or Off and the link Set up in Automatic Import.
Choose a role with minimal permissions for Role for everyone else if you plan to import all contacts.
Syncro and NinjaOne contacts are not imported automatically. Import them with Import users.

Import your own staff

The second panel, named after your MSP, creates MSP staff. Its sources are:
  • Each PSA connection’s technicians: ConnectWise members, Autotask resources, Halo PSA agents, and Syncro and NinjaOne technicians. The row shows how many the connection has synced.
  • Your own Microsoft 365 tenant: the tenant your own team signs in with. MSPortal offers a Microsoft 365 tenant here only when your account, or a Primary Admin’s, is a member of it, so a client’s directory can never create staff. Membership goes by the address you sign in to MSPortal with, after you have signed in with it once. A rule reads that one tenant only. If the connection is later reconnected to a different tenant, its staff rules are removed, and the people their disable rules had turned off are turned back on. If no tenant qualifies, the panel explains that and you can connect your own tenant like any other company’s. Each directory is one row: when several of your companies connect the same Microsoft 365 directory, it shows once, unless more than one of those connections already has rules of its own.
1

Open a source and add an import rule

Click the source’s row, then Add rule beside Import rules. Turning on the switch of a source with no rules opens the same dialog.
2

Name the rule, then choose the staff role and priority

Enter a Rule name. Staff role, beside it, lists your Tenant roles, each once. With more than one role to give, none is chosen for you, so a rule is never saved with an administrator role by accident. Priority sits beside the Apply this rule switch: when several rules match one person, the rule with the lowest number gives the role.
3

Add the conditions

A PSA rule starts with Email address is not empty, which matches every technician the import can take: it already skips deactivated ones. Narrow it with the fields that source carries, listed below. A Microsoft 365 rule starts with Groups include: pick the group your team is in (the list shows your own tenant’s groups only), or use Department, Job title and the other directory fields. Licenses are not available on staff rules.
4

Preview, then save and apply

Click Preview matches to see who will be imported and why others are skipped. The results scroll into view under a summary such as 2 people to import of 4 matches. Click Save and apply. The rule runs right away and reports how many staff it imported.
Each source offers only the fields its own accounts carry: Where the values are known, you pick them from a list:
  • A PSA’s groups list that PSA’s own teams, departments and roles, under headings such as Teams, Departments, Security roles and Work roles.
  • Job title, Department, Office location and Employee type, compared with equals or does not equal, list the values the source’s accounts hold, with how many accounts hold each. An import rule lists the values of active people, a disable rule those of everyone. To use a value that is not listed, type it and pick Use ”…” with your text.
  • User type offers Member or Guest. Yes/no fields such as Deactivated offer is true or is false.
Staff panel with ConnectWise Manage open, showing import rules Service managers as Service manager and Everyone else in ConnectWise as Technician with match counts, and a disable rule Inactive in ConnectWise matching accounts whose source account is disabled

Sample data: a ConnectWise connection's staff rules, one role for service managers and one for everyone else.

New staff import rule dialog for Syncro with the condition PSA agent or technician is true, the Rule outcome, and a preview of 2 people to import of 4 matches marked Will be imported, Already a portal user and Cannot sign in

Sample data: a new staff import rule, with the preview showing who will be imported and why others are skipped.

Staff import and disable rules for a PSA connection on a phoneStaff import rule dialog on a phone with the preview list above Save and apply and Cancel

The staff rules and the rule dialog on a phone.

What a staff import rule does:
  • When it runs: after each sync of its source, and right after you save it.
  • Who it creates: a staff user with status Imported and the rule’s role, linked to the technician or Microsoft 365 account it came from.
  • No invitation: MSPortal sends no email. The person is linked when they first sign in. Send invitations from the Users tab when you are ready.
  • Existing users stay as they are: a person who already has a portal user, staff or client, is skipped. A rule never changes an existing user’s role and never turns a client user into staff.
  • Skipped accounts: disabled accounts, service and API accounts, accounts an exclusion rule matches, and accounts with no email address. The preview shows Account disabled, Cannot sign in or No email address for each.
  • Staff before contacts: in a PSA sync, staff rules run before contact import. A technician who is also a contact of one of your companies becomes staff, not a client user.
  • Turning it off keeps staff: pausing or deleting an import rule stops new imports only.

Disable staff who leave

Add a disable rule to the same source, so a person who is deactivated in your PSA or Microsoft 365 loses portal access without anyone remembering to remove them.
1

Add a disable rule

Open the source and click Add rule beside Disable rules.
2

Choose the condition

A new rule starts with Deactivated is true for a PSA, or Account enabled is false for Microsoft 365. That is “disable the person here when they are disabled there”. You can match on other fields too, such as leaving a group.
3

Preview, then save and apply

The preview lists the staff the rule would disable. Protected admin marks people a rule never disables. Click Save and apply.
  • Who it disables: a staff member whose accounts in that source all match. They are disabled and signed out. This includes someone an import rule creates in the same sync, who is turned off straight away.
  • Coming back: they are turned back on when an account stops matching, or when you pause or delete the rule. They return with the status they had before.
  • Disconnecting the source: removing the PSA or Microsoft 365 connection removes its staff rules and turns back on the people its disable rules had turned off.
  • An administrator’s choice wins: if you turn someone back on yourself, the rule leaves them alone until they stop matching and match again.
  • Primary Admins are never disabled by a rule, and you cannot save a rule that would disable your own account.
  • Safety stop: when a rule would turn off more than three people and over half of your active staff in one pass, MSPortal holds the change, because that pattern usually means a sync failed, not that most of your team left. The rule’s row then says how many disables are held back. Click Review on that row, or save the rule, and MSPortal asks Disable N staff members? with the number it would turn off now. Confirm to apply it, or cancel to leave everyone on. The confirmation covers the people you were shown: anyone the rule matches later is held again.
  • NinjaOne does not report when a technician is deactivated, so a disable rule on a NinjaOne source has to match on something else, such as a name or an email address.

Add exclusion rules

The Exclusion rules panel, under your sources, lists the accounts every source leaves out. Use it for service accounts, shared mailboxes, break-glass accounts and anything else that is not a person who should sign in. An account that matches an exclusion rule becomes a service account with sign-in blocked:
  • No sign-in and no invitation: it cannot sign in to the portal or be invited.
  • Not a seat: it does not count as a seat in financial reporting.
  • Skipped by imports: Microsoft 365 import rules and staff import rules skip it. A PSA contact import still adds it, as a service account that cannot sign in.
  • Still visible: its records, history and source links stay.
The first row, Service, shared and resource accounts, is always on: MSPortal leaves out the API users of a PSA, and the shared mailboxes and meeting rooms it recognizes in Microsoft 365, without a rule. The panel shows whenever a PSA or Microsoft 365 is connected, also when the page lists no import for it. Guests are not left out by that row. Add a rule for them if they should not sign in.
The Exclusion rules panel with an Add rule button, an always-on row for service, shared and resource accounts, a rule named Break-glass and role accounts matching any of 2 conditions with 5 matches, and a rule named Microsoft 365 guests matching source account type equals Guest with 18 matches

Sample data: the Exclusion rules panel with the built-in row and two rules.

The Exclusion rules panel on a phone with its Add rule button, the always-on row and two rules, each with a switch and a menu

The same panel on a phone.

1

Add a rule

Click Add rule in the Exclusion rules panel. The New exclusion rule dialog opens.
2

Name the rule

Enter a Rule name and, optionally, a Description.
3

Add the conditions

Choose Match all conditions or Match any condition, then click Add condition for each one. Every condition has a Field, an Operator and a Value. The list offers the fields of the sources you have connected, each named with its source, such as Microsoft 365 user type, Microsoft 365 groups, PSA agent or technician and PSA contact type, and fields every source has, such as Email address, Display name, Integration and Account type. A tenant with only Halo PSA connected, for example, sees no ConnectWise or Autotask fields.Integration, Account type and Microsoft 365 user type are picked from a list and compared whole. Group fields offer include only, and yes/no fields is true or is false, so a condition never catches every account of a source that lacks that field.
4

Preview the matches

Click Preview matches to list up to 100 synced accounts that match, with each one’s source, company and current access. The results scroll into view under the number of matches, or At least 100 matches when there are more.
5

Save and apply

Leave Apply this rule on and click Save and apply. A paused rule is saved but has no effect. Closing a rule you have edited asks Discard changes? first.
Two common exclusion rules: Use the switch on a rule’s row to pause or resume it. It saves right away. The ⋯ menu has Edit rule and Delete rule. Pausing or deleting a rule gives back sign-in to the accounts that only this rule left out, and lets them be imported again.

Troubleshooting

Frequently asked questions

No. Imported users get no email. Each person is linked when they first sign in. Send invitations from Users or Company Users when you are ready.
They stay. Deleting or pausing a rule only stops new imports. Deleting a disable rule turns its people back on.
Its rules are on this tab. Rules that import or disable Microsoft 365 users are under Client users > Microsoft 365. Rules that blocked sign-in are now exclusion rules, in the Exclusion rules panel, and work as before. A saved link to the Access Rules tab opens Automatic Import.
It is here, in that connection’s row under Client users, with the same switch, default role and contact type rules. The connection’s page shows whether it is on and links to this tab.
No. Turning Create and update contacts in a connection off stops new writes, and contacts MSPortal created stay in the PSA.
No. A person who already has a portal user is skipped. Change their user type by hand if they should be staff.