{"action":"opened","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/2118","repository_url":"https://api.github.com/repos/gocd/gocd","labels_url":"https://api.github.com/repos/gocd/gocd/issues/2118/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/2118/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/2118/events","html_url":"https://github.com/gocd/gocd/issues/2118","id":149197181,"number":2118,"title":"Feature enhancement : API : Allow admins to assign a role to a user through the API","user":{"login":"richard-hulm","id":11884765,"avatar_url":"https://avatars.githubusercontent.com/u/11884765?v=3","gravatar_id":"","url":"https://api.github.com/users/richard-hulm","html_url":"https://github.com/richard-hulm","followers_url":"https://api.github.com/users/richard-hulm/followers","following_url":"https://api.github.com/users/richard-hulm/following{/other_user}","gists_url":"https://api.github.com/users/richard-hulm/gists{/gist_id}","starred_url":"https://api.github.com/users/richard-hulm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard-hulm/subscriptions","organizations_url":"https://api.github.com/users/richard-hulm/orgs","repos_url":"https://api.github.com/users/richard-hulm/repos","events_url":"https://api.github.com/users/richard-hulm/events{/privacy}","received_events_url":"https://api.github.com/users/richard-hulm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T16:10:44Z","updated_at":"2016-04-18T16:10:44Z","closed_at":null,"body":"I've been reading a bit about \"ChatOps\" which is the act of using Chat tools as your deployment controller, so you can give a ChatBot the power to hand out a role (\"deployment-master\") which gives the ability to run certain deployment pipelines\r\n\r\nBefore this is a possibility in Go, the API would need to support the ability to add/modify roles."}}