IT admins are often tasked with generating user-created objects lists for compliance and audit purposes. While Graph PowerShell's Get-MgUserCreatedObject command, an alternative to the Get-AzureADUserAppCreatedObject command, can be used to obtain and export Microsoft Entra ID user-created objects and their details, its complexity and non-intuitive interface make it a challenging option. On the other hand, ADManager Plus, a Microsoft 365 management and reporting tool, simplifies the process, allowing admins to quickly generate and export user-created objects reports in just a few clicks.
Export reports in multiple formats, including HTML, CSV, and PDF.
Schedule automatic report generation.
Before using the Get-MgUserCreatedObject cmdlet, ensure the following:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "User.Read.All"
The Get-MgUserCreatedObject cmdlet can be used in Microsoft Graph PowerShell to fetch Microsoft Entra ID user-created objects. Here's the syntax:
Get-MgUserCreatedObject
-UserId <String>
[-ExpandProperty <String[]>]
[-Property <String[]>]
[-Filter <String>]
[-Search <String>]
[-Skip <Int32>]
[-Sort <String[]>]
[-Top <Int32>]
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PageSize <Int32>]
[-All]
[-CountVariable <String>]
[-ProgressAction <ActionPreference>]
[<CommonParameters>]
Listing all the directory objects created by particular user
Get-MgUserCreatedObject -UserId <'user_id'>
In this command, replace user_id with the user's ID for whom you would like to list all the user-created objects.
The following table contains some parameters that can be used along with the Get-MgUserCreatedObject command to fetch Microsoft Entra ID user-created objects efficiently.
| Parameters | Description |
|---|---|
| -All | This parameter retrieves all user-created objects without default pagination limits. |
| -Filter | This parameter filters user-created objects based on attributes and values. |
| -UserId | This parameter retrieves user-created objects based on their unique identifiers, such as user principal name or object ID. |
| -Property | This parameter retrieves specific attributes of user-created objects. |