How to list all directory extension definitions within an Entra ID tenant.
Get-MgDirectoryObjectAvailableExtension
returns only a few directory extension definitions originating from multi-tenant applications:
Return all directory extension definitions that have been registered
in a directory, including through multi-tenant apps.
In particular, directory extension definitions created on an application in the tenant aren’t returned. They are returned by Get-MgApplicationExtensionProperty -ApplicationId ApplicationId
, which requires an application ID.
2
Answers
To list all directory extension definitions within a Microsoft Entra ID tenant, make use of below PowerShell script as a workaround:
You can call
Get-MgApplication
and expandextensionProperties