Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What permission is required to create a Service Hook in Visual Studio Team Services?

Tags:

azure-devops

In Visual Studio Team Services on the tab for "Service Hooks", some of our project team members get an message that says "You do not have sufficient permissions to view or configure subscriptions."

What permission or group do they need to be assigned in order to create a Service Hook for a given project?

like image 879
Chris Melinn Avatar asked Oct 03 '16 22:10

Chris Melinn


People also ask

Which users can setup a new subscription for service hooks in Azure DevOps?

A: The user with these permissions can see all subscriptions created in the project and the notification history for those subscriptions. That user can then create any type of service hook subscription in that project.

What are the 3 parameters on which service hook runs?

Service hooks have typically 3 parts: publishers, subscribers and consumers.

What is a service hook?

Service hook publishers define a set of events. Subscriptions listen for the events and define actions to take based on the event. Subscriptions also target consumers, which are external services that can run their own actions, when an event occurs.


2 Answers

You need to add user to Project Administrators or Project Collection Administrators group.

like image 50
starian chen-MSFT Avatar answered Oct 12 '22 12:10

starian chen-MSFT


For some reason on TFS 2017 RTM, some projects' Project Administrators could create Service Hooks and some could not.

I had to run the following from tfssecurity.exe:

tfssecurity /a+ /collection:[TFS_Collection_URL] ServiceHooks PublisherSecurity/[Project_GUID] EditSubscriptions n:"[User_ID]" ALLOW
tfssecurity /a+ /collection:[TFS_Collection_URL] ServiceHooks PublisherSecurity/[Project_GUID] ViewSubscriptions n:"[User_ID]" ALLOW

More information:

  • Rest API on getting Project GUIDS
  • MS TFS Service Hook Q/A
  • MSDN forums: What permissions do I need to set up a subscription
like image 37
Josh Johanning Avatar answered Oct 12 '22 12:10

Josh Johanning