This article will help you if you have noticed older user accounts missing from your Office 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 Office 365, and setting it to 'Member'.

How to add the UserType field to users in Office 365

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?