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 ...

Get Cloud Foundry for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.