O'Reilly logo

Cloud Foundry for Developers by David Wu, Rahul Jain, Rick Farmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Assigning roles to a user using cf CLI

Let us now assign the OrgManager role to the user, John, that we created in the previous section, for the Org cf-my-first-org and also assign the SpaceDeveloper role for the development space under the Org, using the cf CLI on Pivotal PCF Dev.

To do this, we need to specify the Cloud Foundry API endpoint of PCF Dev, which is https://api.local.pcfdev.io, and also skip the SSL validation:

Figure 23: Login to PCF Dev using cf CLI

Next, select the cf-my-first-org from the ORG list presented to you on the command line, followed by the development space:

Figure 24: Select the Org and Space upon successful ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required