Get-Office365UserExists cmdlet is used for checking whether Office365 user exists for AD user or not.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1 Authentication Information (all parameters)  
2

Identity

(aliases: GUID, DistinguishedName)

ADObjectParameter R A property, that is used for managing the user

Value of one of these parameters  can be used as Identity:

#ParameterDescription
1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory
3 OriginatingServer string O Address of the server (domain name) where the object physically exists  

Output parameters

#ParameterTypeDescriptionValid Values
1 UserExists bool This property specifies whether Office365 user exists for the AD user
  • True - Office365 user exists for AD user
  • False - Office365 user does not exist for AD user

Examples of using Get-Office365UserExists cmdlet

Getting Office365 user by GUID:

Get-Office365UserExists -Identity "00DA4DAC-069F-41C6-864F-2C9043DB3F1C"