3

I'm building an extension where I'm going to need some uniquely identifiable information about an org across all the installations of the extension. Is there an available API I can use to identify an organization? Preferably an ID.

is SDK.getHost().id the org id?

Matthew The Terrible
  • 1,589
  • 5
  • 31
  • 53

1 Answers1

1

The id is unique GUID for the org. You could also get host URL, which is also uniquely identifiable information, check this link:

https://github.com/microsoft/azure-devops-extension-sdk/issues/28

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
  • I never asked about restricting access to an organization. I asked about how to get unique information about the org such as the org id. It appears that SDK.getHost() will return an id that appears to be the org id which should work for me. – Matthew The Terrible Apr 05 '21 at 13:35
  • 1
    The id is unique GUID for the org. You could also get host URL, which is also uniquely identifiable information, check this link: https://github.com/microsoft/azure-devops-extension-sdk/issues/28 – Cece Dong - MSFT Apr 06 '21 at 09:27
  • If my reply helps you, you could [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), this can be beneficial to other community members reading this thread. – Cece Dong - MSFT Apr 13 '21 at 09:52
  • 1
    So to clarify the answer please, so it means that Organization ID is basically the TenantID in its unique GUID format. Tenant ID can also be in the hot URL format but here in this context we are concerned with the GUID value. – hB0 Sep 16 '22 at 07:44