cli icon indicating copy to clipboard operation
cli copied to clipboard

For OrgManagers trying to push apps without SpaceDeveloper role, give a more precise error than "You are not authorized"

Open brittag opened this issue 6 years ago • 7 comments

Command

cf push APPNAME

What occurred

When you're an Org Manager or a Space Manager and you push an app without giving yourself Space Developer permission, you get a simple error message that says you're not authorized to do that:

Creating app APPNAME... You are not authorized to perform the requested action FAILED

I've observed that this is confusing to new Cloud Foundry users, because they intuitively understand that the Org Manager (or Space Manager) has enough authorization to be able to push applications. They get to this error message and feel confused. They've simply missed the step that they need to specifically give themselves the permission to push apps by giving themselves the Space Developer role.

What you expected to occur

I suggest that the error message in this case can be more helpful, something like the following:

Creating app APPNAME... You are not authorized to perform the requested action, because you do not have the Space Developer role for this space. You have the Org Manager role, so you can give yourself the Space Developer role and then push this app. FAILED

I understand if this is tricky to implement with the current error message system, but I believe that something like this would be very helpful for excellent user experience for brand-new Cloud Foundry users, across many CF deployments. Thank you!

CLI Version

cf version 6.35.2+88a03e995.2018-03-15

CC API Endpoint Version

api version: 2.104.0

brittag avatar Mar 20 '18 02:03 brittag