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
cf auth admin <your-password>
- And give some-user the SpaceDeveloper role for onboarding-org/onboarding-space
cf set-space-role some-user onboarding-org onboarding-space SpaceDeveloper
Expected Result
When logged in as some-user
, you can see “onboarding-org” in your list of orgs and “onboarding-space” in your list of spaces.
Resources
Role permissions Setting user roles
Relevant Repos and Teams
CLI: cloudfoundry/cli CAPI: cloudfoundry/cloud_controller_ng