Azure Logic App - Get Tenant Name without Authentication

Viewed 34

I have gathered the tenantid, but I want to convert this to the tenant name. I am using Logic Apps by the way. The tenant name (FDQN) I want to save into a variable.

Is there any way to do this?

Situation:

  1. From Sentinel I get the Subscription ID from the tenant. I will save this subscription ID into a variable.
  2. From another playbook that gets the tenant ID by providing the subscription ID from Sentinel.
  3. The final step would be having that tenant ID and translate/convert it into the FDQN of the tenant. But I do not have the code for that. Also I want to know if it can be found without authenticating. Else I have to find an alternative.
1 Answers

You can't tenant name from the tenant id without authentication.

But you can use Microsoft Graph REST API - Get tenant to get tenant details. Similarly, should be possible with PowerShell, and Azure CLI but you won't use it in Logic App.

"defaultDomainName": "fourthcoffe001.onmicrosoft.com",

Related