top of page

Enabling self service user and org creation in Pivotal Cloud Foundry




From a terminal window, run cf api URL and target your Apps Manager URL. For example: nettles:~ bfeeny$ cf api api.cf.lab.local --skip-ssl-validation Setting api endpoint to api.cf.lab.local...OK API endpoint:   https://api.cf.lab.local (API version: 2.23.0)   Not logged in. Use 'cf login' to log in. Run cf login and provide your UAA Administrator user credentials: nettles:~ bfeeny$ cf loginAPI endpoint: https://api.cf.lab.local Email> admin Password> Authenticating...OK Select the system org and the console space: Targeted org system Select a space (or press enter to skip):1. apps_manager2. app-usage-service3. autoscaling4. notifications-with-ui Space> 1Targeted space apps_manager API endpoint:   https://api.cf.lab.local (API version: 2.23.0)   User:           admin   Org:            system   Space:          apps_manager    Set the ENABLE_NON_ADMIN_ORG_CREATION environment variable to true: nettles:~ bfeeny$ cf set-env apps_manager ENABLE_NON_ADMIN_USER_MANAGEMENT trueSetting env variable 'ENABLE_NON_ADMIN_USER_MANAGEMENT' to 'true' for app apps_manager in org system / space apps_manager as admin...OKTIP: Use 'cf restage' to ensure your env variable changes take effect Set the ENABLE_NON_ADMIN_ORG_CREATION environment variable to true: nettles:~ bfeeny$ cf set-env apps_manager ENABLE_NON_ADMIN_ORG_CREATION true Setting env variable 'ENABLE_NON_ADMIN_ORG_CREATION' to 'true' for app apps_manager in org system / space apps_manager as admin...OKTIP: Use 'cf restage' to ensure your env variable changes take effect Even though it says to run cf restage we can just do a cf restart: nettles:~ bfeeny$ cf restart apps_managerStopping app apps_manager in org system / space apps_manager as admin...OK Starting app apps_manager in org system / space apps_manager as admin... 0 of 1 instances running, 1 starting0 of 1 instances running, 1 starting0 of 1 instances running, 1 starting1 of 1 instances running App started OK App apps_manager was started using this command `bundle exec rake server:start_command --trace` Showing health and status for app apps_manager in org system / space apps_manager as admin...OK requested state: startedinstances: 1/1usage: 1G x 1 instancesurls: console.cf.lab.locallast uploaded: Fri Apr 17 00:21:01 UTC 2015      state     since                    cpu    memory         disk           details   #0   running   2015-04-16 10:38:25 PM   0.0%   209.3M of 1G   285.1M of 1G Now that this environment variable is properly set we can goto the login page again:

Recent Posts

See All

Comments


Hi, thanks for stopping by!

I'm a paragraph. Click here to add your own text and edit me. I’m a great place for you to tell a story and let your users know a little more about you.

Let the posts
come to you.

Thanks for submitting!

  • Facebook
  • Instagram
  • Twitter
  • Pinterest
bottom of page