https://github.com/zmb3/orgaudit
Assign the SpaceAuditor role to Cloud Foundry OrgAuditors.
https://github.com/zmb3/orgaudit
Last synced: about 2 months ago
JSON representation
Assign the SpaceAuditor role to Cloud Foundry OrgAuditors.
- Host: GitHub
- URL: https://github.com/zmb3/orgaudit
- Owner: zmb3
- License: apache-2.0
- Created: 2017-10-18T17:58:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T16:33:12.000Z (over 8 years ago)
- Last Synced: 2025-12-26T11:43:38.408Z (6 months ago)
- Language: Go
- Size: 5.48 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# orgaudit
Assign the SpaceAuditor role to Cloud Foundry OrgAuditors.
`orgaudit` assigns the SpaceAuditor role to all OrgAuditors in a Cloud Foundry Organization.
**Releases:**
Download a release for your platform from the [releases](https://github.com/zmb3/orgaudit/releases) page.
**Usage:**
Provide `orgaudit` with your system domain, a user ID and client secret, and the
name of the organization to run against:
`$ orgaudit -d local.pcfdev.io --user-id cf-mgmt --client-secret cf-mgmt-secret -o foo`
The `--user-id` and `--client-secret` flags can be omitted by using the
`USER_ID` and `CLIENT_SECRET` environment variables.
**Setup:**
You'll need a client ID and client secret with the appropriate scopes in order
to perform these actions. To create a UAA client, use the
[`uaac` Command Line](https://github.com/cloudfoundry/cf-uaac):
```
$ CLIENT_ID=user
$ CLIENT_SECRET=s3cr3t
$ UAA_DOMAIN=uaa.local.pcfdev.io # typically uaa.
$ uaac target $UAA_DOMAIN
$ uaac token client get admin -s admin-client-secret
$ uaac client add $CLIENT_ID \
--name $CLIENT_ID \
--secret $CLIENT_SECRET \
--authorized_grant_types client_credentials,refresh_token \
--authorities cloud_controller.admin,scim.read,scim.write
```