成员权利管理 VSTS API

Member Entitlement Management VSTS API

我一直在尝试使用 Visual Studio 中的成员权利管理 VSTS API。我正在尝试获取用户权利摘要,但收到 API 定位器错误。

http://Microsoft.VisualStudio.Services.WebApi.VssResourceNotFoundException : API resource location 5ae55b13-c9dd-49d1-957e-6e76c152e3d9 is not registered on https://tfs-test/tfs.

我试图将集合添加到 URL 并尽可能多地装饰它,就像 MSDN 页面上的 REST API 调用一样,但我没有成功。我注意到 MSDN 页面有一个关于 oauth2 的部分,但我一直在使用 PAT。我找不到任何对本地 TFS 2018 的 oauth2 的引用,这不可能吗?

MSDN - Get User Summary API

这个问题,是因为User Entitlement Summary - Getrestapi只适用于VSTS(azure devops),不支持on-premise TFS。 TFS API 目前不支持获取访问级别。

当你将其余api版本切换到TFS2018 U2时,你会得到这个提示:

The requested page is not available for Team Foundation Server 2018 U2. You have been redirected to the newest product version this page is available for.

类似问题可以参考这个case