Skip to main content
All CollectionsFrequently asked questions (FAQs)Microsoft 365
Why are some older user accounts missing from my Microsoft 365 sync?
Why are some older user accounts missing from my Microsoft 365 sync?

Learn how to fix users created before August 2014 missing from your Microsoft 365 sync.

Courtney Leacock avatar
Written by Courtney Leacock
Updated over 2 years ago

This article will help you if you have noticed older user accounts missing from your Microsoft 365 sync with usecure.

What causes users from before August 2014 to be missing from syncs?

In August 2014, Microsoft introduced the 'UserType' field into Office 365. This field is what the usecure app uses to separate 'Guest' and 'Member' accounts - allowing the app to know which users to import. Users without the 'UserType' field won't be imported into the usecure app.

How to sync older user accounts into usecure

You can import user accounts created before 31 August 2014 into usecure by adding the UserType field to their accounts in Microsoft 365, and setting it to 'Member'.

How to add the UserType field to users in Microsoft 365

You can set the UserType to 'Member' manually in the Azure Active Directory portal. There is a "User Type" dropdown field in the Identity section of the Edit User page. This is useful if you only have a handful of users that are missing a UserType.

How to add the UserType field to users in Microsoft 365 via Powershell

You can set the UserType in bulk with Powershell using the process outlined below.

1. Find users with an empty UserType

If you haven't already, install the Azure Active Directory Powershell for Graph in your environment. You can install it using the command below:

Install-Module -Name AzureAD

Once installed type in one of these commands:

Get-AzureADUser -all $true
Get-MSOLUser | Select ObjectId,DisplayName,UserPrincipalName,UserType

You will then see a list of your users, and can identify the users with the UserType field missing. Verify that you wish to add all of these users as Members.

2. Change UserType to Member

You can change UserType for single users or for all users with empty UserType fields.

Change UserType for a single user

This command allows you to set the UserType of a specific user to 'Member'"

Set-MsolUser -UserPrincipalName [email protected] -UserType Member

Change UserType for all users with an empty UserType field

Warning: This will set the UserType to member for all users with a missing UserType, so it is important to verify you want all of those users to be set to Members.

Type in this command to set the UserType field to 'Member' for all users with a missing UserType:

Get-MSOLUser -All | Where {$_.UserType -eq $null} | Set-MsolUser -UserType Member

Please note that to run the commands below you may need to install the Azure AD (MSOnline) module using the command below:

install-Module MSOnline


Did this answer your question?