MicrosoftDocs / vsts-rest-api-specs

MIT License
169 stars 117 forks source link

Azure DevOps Server 2019 - /_apis/graph/groups?api-version=5.0-preview.1 #184

Open kardinal3000 opened 5 years ago

kardinal3000 commented 5 years ago

Hello guys,

I hope I choose right place to ask a question if not please correct me.

I use TFS on-premises. Couple days ago, I installed Azure DevOps Server 2019, that was released on 5 March. My priority was using Graph and MemberEntitlementManagement APIs. So, the first what I did, I checked availability of necessary API versions in Azure DevOps Server 2019 - all looked promising.

But when I tried to do this: GET http://tfsserver:8080/tfs/{collection name}/_apis/graph/groups?api-version=5.0-preview I always get <title>Page not found. - Azure DevOps Server</title>

Can you please help me to find out what I did wrong ?

akosk commented 4 years ago

Same issue here. Have you any solution for this?

TheSpiriTOne commented 3 years ago

Same here. DevOps Server 2019...

tmeckel commented 3 years ago

The graph and entitlement endpoints are only available for Azure DevOps Services (Cloud).

The replacement for graph for the on-premises server is the identity endpoint. Which is in turn not documented here.

The on premises server does not have an entitlement endpoint at all, because you have to buy a CAL for every account that has access to your installation. Ref to: https://azure.microsoft.com/en-us/pricing/details/devops/server/

To get all available REST Endpoints for a Azure DevOps Server globally you can use the following PowerShell command (Powershell 7.1.3)

(Invoke-RestMethod -Method Options -Uri http://localhost/_apis -UseDefaultCredentials -AllowUnencryptedAuthentication).Value

For all REST Endpoints for a Project Collection use

(Invoke-RestMethod -Method Options -Uri http://localhost/DefaultCollection/_apis -UseDefaultCredentials -AllowUnencryptedAuthentication).Value
TheSpiriTOne commented 3 years ago

@tmeckel thanks for the info.