Last active
August 29, 2015 14:13
-
-
Save loopj/b41e5c8bbf1533e5aece to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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