Office 365: How to retrieve the piece Name and holding ID? [Quick Guide]

6:36 pm November 23, 201613401

I. introduction

there is information associated with a subscription Office 365, including information about “Holding”, which can retrieve the name and ID unique.

Holding… How to translate this in french… Let’s say it’s a word that allows you to designate the space of your business within Office 365. In other words, holding it is the bubble in Office 365 that is reserved for your company and which is partitioned. What is stored in your holding, this is for example the news related to your business, your users… And only your users have access to your holding of your bubble, your workspace private in Office 365.

II. why retrieve information about holding it?

First, he must know that the name of the tenant is specific to your company. All in the form “ my – entreprise.onmicrosoft.com ” where the fixed part is always the domain ‘ onmicrosoft.com “.”

It may be necessary to retrieve the name of the tenant, or even and especially its ID corresponding to your business. For example, when you configure the GPO OneDrive provided by Microsoft, holding ID is required for one of the parameters.

Feel free to share with us the case in which you had to use this information.

III. how to get the tenant ID and name holding?

Can recover holding name easily on the administration Office 365 interface, by clicking on “ areas ‘ on the block of the same name.

office-365-tenant-1

Then you will have the list of your domains, one with a name in the form “*. onmicrosoft.com” corresponds to the name holding.

office-365-tenant-2

Otherwise, in PowerShell there is also easily the name and ID of the tenant. Beforehand, please log into a console with the Office 365 services. For those who need: tutorial – authenticate on Office 365 in PowerShell .

There are then two commands that can give us name tenant.

By running this command with no parameters, you will get the list of your domains in the same way as on the administration interface. Here is an example of output:

 PS C:UsersFlorian > Get - Name Status Authentication MsolDomain ---itconnect.onmicrosoft.com Verified Managed it - connect.fr Verified Managed 

move on to the second command.

Here again, without any parameters we obtain a list where the prefix of the name in the first column will give us name tenant. Here is an example with the prefix “itconnect” who are the current name:

 PS C:UsersFlorian > Get - Msolaccuntsku AccountSkuId ActiveUnits WarningUnits ConsumedUnits ----500 0 20 itconnect:OFFICESUBSCRIPTION_FACULTY 

Finally, to finish this tutorial, we’ll see how to retrieve the source ID. You can run the command below adapting holding name of the URL:

(Invoke-WebRequest https://login.windows.net/itconnect.onmicrosoft.com/.well-known/openid-configuration|ConvertFrom-Json). Token_Endpoint.Split("/") [3] 

in return, you must get your tenant ID 🙂