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

Need a way to distinguish between a user's direct capabilities and those inherited from their role #99

Open
johnbillion opened this Issue Oct 6, 2017 · 2 comments

Comments

3 participants
@johnbillion
Contributor

johnbillion commented Oct 6, 2017

wp user list-roles <user> returns both the capabilities that a user has been directly assigned, and the capabilities that they inherit from their role.

Their doesn't appear to be a way to retrieve only a list of the user's direct capabilities. It would be nice to have this option via a flag.

@schlessera

This comment has been minimized.

Show comment
Hide comment
@schlessera

schlessera Oct 27, 2017

Member

Option A:
--direct--only and --inherited-only, both mutually exclusive

Option B:
--origin=direct|inherited|all

Hmm, both don't look right to me. Did I miss the obvious one?

Member

schlessera commented Oct 27, 2017

Option A:
--direct--only and --inherited-only, both mutually exclusive

Option B:
--origin=direct|inherited|all

Hmm, both don't look right to me. Did I miss the obvious one?

@johnbillion

This comment has been minimized.

Show comment
Hide comment
@johnbillion

johnbillion Oct 27, 2017

Contributor

--origin=user|role|all could work.

Contributor

johnbillion commented Oct 27, 2017

--origin=user|role|all could work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment