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?
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.
Service hooks have typically 3 parts: publishers, subscribers and consumers.
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.
You need to add user to Project Administrators or Project Collection Administrators group.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With