Included are a bunch of scripts that will allow you to quickly and easily provision API users with temporary roles. This is useful when you're hosting a hackathon or user group and need to give folks temporary access to Rackspace APIs.
If you do not have Composer:
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin
Then you will need to install this repo:
git clone https://github.com/jamiehannaford/rackspace-rbac
cd rackspace-rbac && composer install
You will need to have RS_USERNAME
and RS_API_KEY
set as environment variables.
Edit and run ./bin/list-roles
. It will list the name and ID of every single role available to sub-users.
Edit and run ./bin/create-users
. It will create total
amount of users with a prefix
, and assign them all to
the role IDs specified. So if the prefix is "foo" and the total is 3, these users will be created: foo_1
, foo_2
,
foo_3
.
Edit and run ./bin/delete-user
. It will delete all users that match the prefix
.