Skip to content

Please expose add_to_blog and new_role as fields in signup #629

Description

@leedxw

Feature Request

Describe your use case and the problem you are facing

As an administrative task I'd like to be able to audit unactivated administrator accounts. I would also like to audit on a multisite basis.

Currently, because the value is stored in meta as part of a serialised string, I need to do additional processing on top of the wp-cli command to obtain these.

a:2:{s:11:"add_to_blog";i:228;s:8:"new_role";s:13:"administrator";} 
wp user signup --active=0 --fields=id,registered,user_login,meta --format=csv | grep administrator

Describe the solution you'd like

Please add blog_id and new_role as available fields that can be both queried and included in output.

  • command to show inactive administrator signups
wp user signup --active=0 --new_role=administrator --fields=id,registered,user_login --format=csv
  • command to show signups for a specific blog id
wp user signup --active=0 --blog_id=228

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions