Grant Temporary Access with a Hubot Chatbot
Setup
heroku config:set SDM_HOME=/app heroku config:set SDM_ADMIN_TOKEN=<admin token here>module.exports = (robot) -> robot.hear /access to (.*)/i, (res) -> target = res.match[1] email = res.envelope.user.email_address res.reply "Granting #{email} access to '#{target}' for 1 hour" spawn('sdm', ['admin','users','grant-temporary','-d','1h',target,email])
Enhancements
Last updated
Was this helpful?

