Forum Discussion

Thomsch's avatar
Thomsch
Iron Contributor
Mar 29, 2021

Get a list of "Other organizations you belong to" from all users

Is it possible to get a list of all organizations where users of the own tenant are invited as guests?

It's pretty easy and straight forward to get a list for my own organizations (https://myaccount.microsoft.com/organizations). But I don't find any option to get this list for all AAD users.

 

And is it possible to leave organizations on behalf of my users?

8 Replies

  • Manlyboots907's avatar
    Manlyboots907
    Copper Contributor
    Couple of keys here.
    1-if you can get it for your self (a global admin) then you can get it for everyone, so it must be possible
    2 - i matters were the attribute is stored. One of the things i have learned is that AZURE has several DB's of info not a single one like on prem. So connect-azuread is not the same as MS graph or others.
    3 - as i understand it, MS Graph is the new hotness, and I would bet that if you explore connecting to your tenent under this method (GUI, powershell, html) you will find the property you want. after you have the place, and attribute, it is a simple matter of looping it to get them for all.

    I know this s not a direct answer, but i pray it gives you some hope of a direction.
  • solmssen's avatar
    solmssen
    Brass Contributor
    Bumping this to see if there's any traction here? This seems like a key thing to be able to do and there's no sign of any way to do it...
  • IanCaldwell's avatar
    IanCaldwell
    Iron Contributor
    This is truly a mystery. Individual users can easily review the "other organizations" but as admin I cannot find this information anywhere! We have been reviewing our own external guest users which made us think of how our users must exist the same way in other tenants. Given that we can see some private information about our external guests i.e. IP address makes me think that admins urgently need this kind of insight into how their users are connecting to other tenants.
    • Thomsch's avatar
      Thomsch
      Iron Contributor
      If you get any information, I'm keen to hear it 🙂
  • rfoppen's avatar
    rfoppen
    Copper Contributor

    Thomsch Did you ever get any sort of reply or other info on this?  We have exactly the same question/requirement.

    • WillFulmer's avatar
      WillFulmer
      Copper Contributor

      rfoppen Thomsch - Have either one of you received any guidance on being able to execute some sort of list or PowerShell script for this purpose - identifying all users in Azure Active Directory and determining all "Other organizations you belong to" ?

      • rfoppen's avatar
        rfoppen
        Copper Contributor
        Unfortunately no, there has been no further traction on this one.

        I tried examining queries with Microsoft Graph X-Ray; but the data presented in the My Account view for this does not appear to come through a Graph call.

Resources