Skip to content

Instantly share code, notes, and snippets.

@loopj
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loopj/b41e5c8bbf1533e5aece to your computer and use it in GitHub Desktop.
Save loopj/b41e5c8bbf1533e5aece to your computer and use it in GitHub Desktop.
Bugsnag::Api.configure do |config|
config.auth_token = "your-account-api-token"
config.endpoint = "http://api.bugsnag.example.com"
end
account = Bugsnag::Api.account
users = Bugsnag::Api.users(per_page: 100)
users.each do |user|
Bugsnag::Api.update_user_permissions(account.id, user.id, {admin: true})
end
source "https://rubygems.org"
gem "bugsnag-api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment