Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.46 KB

File metadata and controls

44 lines (24 loc) · 1.46 KB

Example 1: Retrieve changes for a collection of users and groups

Import-Module Microsoft.Graph.DirectoryObjects

Get-MgDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')" 

This example will retrieve changes for a collection of users and groups

Example 2: Retrieve a collection of changes for a directory object

Import-Module Microsoft.Graph.DirectoryObjects

Get-MgDirectoryObjectDelta -Filter "id eq '87d349ed-44d7-43e1-9a83-5f2406dee5bd'" 

This example will retrieve a collection of changes for a directory object

Example 3: Retrieve changes to specific properties for a collection of users and groups

Import-Module Microsoft.Graph.DirectoryObjects

Get-MgDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')" -Property "microsoft.graph.user/surname,microsoft.graph.group/displayName" 

This example will retrieve changes to specific properties for a collection of users and groups

Example 4: Retrieve specific properties only if they changed for a collection of users and groups

Import-Module Microsoft.Graph.DirectoryObjects

Get-MgDirectoryObjectDelta -Filter "isof('microsoft.graph.user') or isof('microsoft.graph.group')" -Property "microsoft.graph.user/surname,microsoft.graph.group/displayName" 

This example will retrieve specific properties only if they changed for a collection of users and groups