Missing App registrations

Hexamail Support 1 Reputation point
2022-09-28T16:28:46.077+00:00

IN 2020 we registered numerous applications, they now appear to be missing from our account. We need to be able to manage these apps.

There seem to be multiple accounts with our email address as the login, but the Apps do not appear under App Registrations for any of the accounts.
How do we discover which tenant or login is required to manage an existing registered App?

I have the App object IDs and Application IDs and they say they are registered to hexamail.com but when in our tenant hexamail.com nothing is shown.

I have (re) added the required "Application administrator" role to my login, and I am global admin but still nothing.

The Application ID for one such App is 95f5108c-d96e-4387-bdd4-88958ad925fc (Hexamail POP3 Downloader)

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,798 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2022-09-28T21:22:52.613+00:00

    Hello @Hexamail Support and thanks for reaching out. There's no API to discover the home tenant for an Azure AD app registration but you can iterate trough all the tenants for an account and get all applications or applications that match selected app Ids. Use the following scripts as basis for doing so. You need to install the Az PowerShell module.

    To list all app registrations for all tenants

       Connect-AzAccount  
       Get-AzTenant  
       $account=(get-AzContext).Account  
       $tenants=(Get-AzTenant).Id  
       $tenants|foreach {  Connect-AzAccount -AccountId $account.Id -Tenant $_; Get-AzADApplication }  
    

    To list all app registrations for all tenants that match selected app Ids

       Connect-AzAccount  
       Get-AzTenant  
       $account=(get-AzContext).Account  
       $tenants=(Get-AzTenant).Id  
       $appIds = ("id1","id",...) # Replace with known app Ids  
       $tenants|foreach {  Connect-AzAccount -AccountId $account.Id -Tenant $_;  foreach($id in $appIds) { Get-AzADApplication -filter "appId eq '$id'" } }  
    

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.