Create a new user
What?
Cloud Foundry uses role-based access control, with each role granting permissions in either an organization or an application space. View the types of roles and their abilities. Without a certain role in an org and space you won’t be able to perform specific actions.
How?
- Create a new user
cf create-user some-user some-password
- Login as that user
cf auth some-user some-password
- And view orgs
cf orgs
Not much there, huh? By default some-user
cannot view or perform any actions, so as an admin, you’ll have to assign some roles. Log back in as the admin user and update some-user
’s roles so they can push an application in the onboarding-org / onboarding-space org and space.
- Login back in as admin
- And give some-user the SpaceDeveloper role for your org and space
cf set-space-role some-user NAME-OF-YOUR-ORG NAME-OF-YOUR-SPACE SpaceDeveloper
Expected Result
When logged in as some-user
, you can see your org’s name in your list of orgs and your space’s name in your list of spaces.
Resources
Docs: Role permissions Docs: Setting user roles
Relevant Repos and Teams
CLI: cloudfoundry/cli CAPI: cloudfoundry/cloud_controller_ng