List all of your Enterprise Azure AD authenticated applications with SAML using PowerShell

This is just a quick PowerShell command you can use to list all of your Azure AD authenticated applications that use SAML in PowerShell

Run the below code:

Connect-AzureAD
$type = "SAML APP"
Get-AzureADServicePrincipal -All $true | Where-Object {($_.Tags -contains "WindowsAzureActiveDirectoryGalleryApplicationNonPrimaryV1") -or ($_.Tags -contains "WindowsAzureActiveDirectoryCustomSingleSignOnApplication")} | Select DisplayName, @{Name="AppType"; Expression={$type}} 

3 Replies to “List all of your Enterprise Azure AD authenticated applications with SAML using PowerShell”

  1. Thanks! This was very helpful. Modified slightly to get me a bit more useful info:
    Connect-AzureAD
    $type = “SAML APP”
    $apps=Get-AzureADServicePrincipal -All $true | Where-Object {($_.Tags -contains “WindowsAzureActiveDirectoryGalleryApplicationNonPrimaryV1”) -or ($_.Tags -contains “WindowsAzureActiveDirectoryCustomSingleSignOnApplication”)} | Select DisplayName, @{Name=”AppType”; Expression={$type}}, `
    @{Name=”AzureADCustomSingleSignOnApplication”; Expression={($_.Tags| ? {$_ -eq “WindowsAzureActiveDirectoryCustomSingleSignOnApplication”}) -ne $null}}, `
    @{Name=”AzureADGalleryApplicationNonPrimaryV1″; Expression={($_.Tags| ? {$_ -eq “WindowsAzureActiveDirectoryGalleryApplicationNonPrimaryV1″}) -ne $null}}, `
    @{Name=”AzureADOnPremApp”; Expression={($_.Tags| ? {$_ -eq “WindowsAzureActiveDirectoryOnPremApp”}) -ne $null}},AppId,ObjectID

Leave a Reply

Your email address will not be published. Required fields are marked *