Search code examples
azure-devopsazure-devops-rest-apiazure-devops-extensions

Azure Devops - Get Org ID


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?


Solution

  • 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