I tried looking through the REST API Browser (and I unchecked public api only) for a way to expose the permissions given to a particular plan and could not find one. Not sure if there is a JSON-RPC api available to let me get this information or not...
Management wants me to make a spreadsheet of all IDs that have access to Bamboo, what role each ID has on each priviledged resource - and they also want to know the last login time (which I am not sure I can even get).
I know that there are cases where the permission is based on a group, and I can query Jira to get the group members... but I just dont want to go through thousands of plans individually on the web interface, that would take me a month to do.
Looking to see if anyone else had to do something similar and can share.
web scraping is icky... but if worse comes to worse, I do have....
curl -k -u 'ausername:somepassword' https://my.bamboo.url/chain/admin/config/editChainPermissions.action?buildKey=MYBUILD-KEY | awk -F\" '/bambooPermission_/{ print $(NF - 1) }'
I don't want this to be the accepted answer... but just in case there is no better answer I wanted to put it out there for everyone else.
Currently scraping...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As a 3-year late suggestion - I'd add a
| grep " checked "
before the awk to your solution. Also, don't forget the Deploy side, too...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
:) way to necromance :) but yes, thats a valid comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think this is exposed through REST. You could write a plugin for it but it might be kinda hairy...
There are 2 rest end points that can give you the projects/plans that you could always pipe into the above( https://docs.atlassian.com/bamboo/REST/5.0-SNAPSHOT/#d2e41). If this is going to be a one-off - it might just be worth it go for the ugly...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, I saw it wasnt in rest, but that doesn't mean we cant use JSON-RPC... I learned at Summit 2013 that theres still a lot of things you can do with JSON-RPC that isnt in REST yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.