1

we have a cloud foundry demo installation for customers. Customers are able to create an account. Now, I would like t assign automatically a specific org and space incl. roles to every new user.

Is that possible?

Stburcher
  • 64
  • 12

2 Answers2

3

You could create a web application that users go to create their account then use uaa apis and cloud controller apis to create and assign the user to whatever you want. This application can use uaa client accounts with appropriate authorities.

If you only want users to create their accounts using your application I believe you can tell uaa to disable self service links in the uaa ui using "login.self_service_links_enabled=false" and can probably stop people from creating their own accounts on the CLI by removing the "scim.write" scope from the cf client.

youngm
  • 189
  • 3
0

There's nothing out of the box that does this. I can't see anything in the events API that you could plug into either.

DeejUK
  • 12,891
  • 19
  • 89
  • 169
  • A good place to also ask would be the Cloud Foundry Community Slack. There must be a way as public CF's like PWS & Bluemix have that functionality - https://slack.cloudfoundry.org/ – AlexEvade Oct 26 '16 at 17:28
  • @AlexEvade PWS and BlueMix wrap the user-create call, and orchestrate the other actions. So one could do something like youngm suggests. – DeejUK Oct 27 '16 at 08:22