• Resolved lewisimplantiem

    (@lewisimplantium)


    I’m trying to set up a role that will only allow the user to access and edit user information in the dashboard, and also view WooCommerce information such as order info and products. The role currently has the following permissions;

    – edit_users
    – list_users
    – read
    – read_private_pages
    – read_private_posts
    – read_private_products
    – read_private_shop_coupons
    – read_private_shop_orders
    – read_product
    – read_shop_coupon
    – read_shop_order
    – read_shop_webhook
    – view_woocommerce_reports

    However, the test account I have set up with this role cannot view the dashboard via /wp-admin. Am I missing something?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter lewisimplantiem

    (@lewisimplantium)

    I’ve cracked it! My role needed a lot more than just those few permissions;

    assign_product_terms
     assign_shop_coupon_terms
     assign_shop_order_terms
     assign_shop_webhook_terms
     connections_view_public
     delete_others_products
     delete_others_shop_coupons
     delete_others_shop_orders
     delete_others_shop_webhooks
     delete_private_products
     delete_private_shop_coupons
     delete_private_shop_orders
     delete_private_shop_webhooks
     delete_product
     delete_product_terms
     delete_products
     delete_published_products
     delete_published_shop_coupons
     delete_published_shop_orders
     delete_published_shop_webhooks
     delete_shop_coupon
     delete_shop_coupon_terms
     delete_shop_coupons
     delete_shop_order
     delete_shop_order_terms
     delete_shop_orders
     delete_shop_webhook
     delete_shop_webhook_terms
     delete_shop_webhooks
     edit_others_products
     edit_others_shop_coupons
     edit_others_shop_orders
     edit_others_shop_webhooks
     edit_private_products
     edit_private_shop_coupons
     edit_private_shop_orders
     edit_private_shop_webhooks
     edit_product
     edit_product_terms
     edit_products
     edit_published_products
     edit_published_shop_coupons
     edit_published_shop_orders
     edit_published_shop_webhooks
     edit_shop_coupon
     edit_shop_coupon_terms
     edit_shop_coupons
     edit_shop_order
     edit_shop_order_terms
     edit_shop_orders
     edit_shop_webhook
     edit_shop_webhook_terms
     edit_shop_webhooks
     edit_users
     list_users
     manage_links
     manage_product_terms
     manage_shop_coupon_terms
     manage_shop_order_terms
     manage_shop_webhook_terms
     manage_woocommerce
     publish_products
     publish_shop_coupons
     publish_shop_orders
     publish_shop_webhooks
     read
     read_private_pages
     read_private_posts
     read_private_products
     read_private_shop_coupons
     read_private_shop_orders
     read_private_shop_webhooks
     read_product
     read_shop_coupon
     read_shop_order
     read_shop_webhook
     unfiltered_html
     view_woocommerce_reports
    Plugin Author Vladimir Garagulya

    (@shinephp)

    That’s good that your role needs ‘manage_woocommerce’ capability. In other case it still would not have access to admin dashboard.
    In general WooCommerce checks a special filter, ‘manage_woocommerce’ or ‘edit_posts’ or ‘view_admin_dashboard’ capabilities to decide if user has access to admin dashboard. For more details read this article.

    Thread Starter lewisimplantiem

    (@lewisimplantium)

    Handy info, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Role cannot view dashboard?’ is closed to new replies.