I have a Microsoft account. I have a subscription which belongs to, say, tenant1 (AD1). I create another active directory (say, AD2), but I don't move the current subscription to AD2.
I can create users in both active directories, make them guests for each other and login to my web api application.
Now I want to know all the tenants related to a logged in user.
For example user1 is a member of AD1, and a guest of AD2, AD3. My web api is registered in AD1.
I call https://management.azure.com/tenants?api-version=2019-06-01 but it retrieves only ID of AD1, but I expected to have an array of AD1, AD2, AD3.
What am I doing wrong?