entity-command icon indicating copy to clipboard operation
entity-command copied to clipboard

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

Open johnbillion opened this issue 8 years ago • 2 comments

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.

johnbillion avatar Oct 06 '17 19:10 johnbillion

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?

schlessera avatar Oct 27 '17 05:10 schlessera

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

johnbillion avatar Oct 27 '17 09:10 johnbillion