-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message for insufficient permissions to create new user #1238
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/151666616 The labels on this github issue will be updated when the story is started. |
Hi @brittag Thanks for taking the time to bring this up. The server error message you proposed is used by a lot of commands that talk to the CC API. I'm not sure if that format is really better and would like to consider phasing it out. Here, how about just changing it to something like the following?
|
Sure, that would work for me! I agree that the existing error message format used by other commands could be better. :) |
Addressed in cf CLI 6.33.0. |
Awesome! 🎉 |
Command
Using a normal CF account that doesn't have Admin permissions, I ran a create user command:
cf create-user test test
What occurred
I received an error message that says "Insufficient scope for this resource", which is technical/jargony language that the reader may not understand if they aren't familiar with CF internals.
What you expected to occur
I suggest returning a plain-language error message. For example, other actions that I can't do because I'm not an admin (such as
cf create-org test
) give me "You are not authorized to perform the requested action". So here's what I expected to occur:CLI Version
cf version 6.32.0+0191c33d9.2017-09-26
CC API Endpoint Version
api version: 2.96.0
Thanks!
The text was updated successfully, but these errors were encountered: