google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Investigate possible ways to verify a user's site for Search Console from the plugin when getting the 'Insufficient permissions in Search Console' error #6288

Open adamdunnage opened 1 year ago

adamdunnage commented 1 year ago

Bug Description

As discussed here, it would be a better user experience if we were able to verify a users site with Search Console from the plugin when they are facing the 'Insufficient permissions in Search Console' error.

@felixarntz described this as tricky based on how Site Kit works but suggested that this could be looked into to see if we can do anything on the plugin side. If it's not possible to do this then 2 possible alternatives to this are:

  1. Change the request access button so that it disconnects the user allowing them to reconnect and verify the site. It would be better if we could auto-reconnect the user too on click of the button but I'm not sure that would be possible
  2. Simply change the wording on the request access button as it's a little misleading. Clicking the button doesn't request access but just takes the user to Search Console to manually verify their site.

Currently the user has to use the request access button which takes them to Search Console to manually verify their site. This results in questions for support from confused users.

Steps to reproduce

This notice can occur when:

Screenshots

image

Additional Context


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

adamdunnage commented 1 year ago

@aaemnnosttv I have been testing this once more this morning and have been able to recreate following these steps:

  1. Set up Site Kit with Google account A on a fresh WordPress site so Search Console is connected.
  2. Disconnected Site Kit and reconnect with Google account B.
  3. Log into the Search Console platform with Google account A and go to Settings > Users and permissions.
  4. Remove access to the Search Console property for Google account B.
  5. Refresh the Site Kit Dashboard.

This has happened in the past but there are a number of ways that this error could display for users also. As mentioned above it would be good if we could look at potentially doing one of the following:

Let me know if there's anything else I can share to help understand this.

aaemnnosttv commented 1 year ago

@adamdunnage the implementation for the request access URL isn't specific to any module. Is there a support document we can update that "Get help" links to here with guidance for Search Console?

adamdunnage commented 1 year ago

@aaemnnosttv We do have documentation on the site for this error specifically for Search Console yes. That can be found here. I believe that is where the get help link already links to.