Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Unable to make Get Service EndPoints Call from Dashboard Widget Configuration #141

Open
akhanna38 opened this issue Apr 18, 2019 · 1 comment

Comments

@akhanna38
Copy link

Unable to make Get Service EndPoints Call from Dashboard Widget Configuration
I am trying to get list of service endpoints in a dashboard widget configuration

import TFS_SE_Contracts = require("TFS/ServiceEndpoint/Contracts");
import TFS_SE_Client = require("TFS/ServiceEndpoint/ServiceEndpointRestClient");
const seClient = TFS_SE_Client.getClient();
const context: WebContext = VSS.getWebContext();
const serviceEndpoints: TFS_SE_Contracts.ServiceEndpoint[] = await seClient.getServiceEndpoints(context.project.id,"xyz");

However it keeps failing with this message
TF400813: The user '51c243d4-a5d6-41f4-ad40-ded34ccd8530' is not authorized to access this resource.
Guid shown here is not my user id but I get this guid everytime. This guid is not even present in WebContext. if another person tries, they get different guid.

dashboard widget has scope set up to vso.serviceendpoint_manage

@akhanna38
Copy link
Author

looks to be an issue with TFS 2018. it works with Azure DevOps on-prem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant