invalid oauth scope to access this URLOAUTH_SCOPE_MISMATCH

invalid oauth scope to access this URLOAUTH_SCOPE_MISMATCH

Using the PHP SDK.

I generated the Grant Token with the following scope: aaaserver.profile.READ,ZohoCRM.modules.ALL

I used Postman to generate the Refresh Token using the Grant Token.

I ran the code outlined in the PHP SDK docs to generate the Access Code: 

  1. ZCRMRestClient::initialize();
    $oAuthClient = ZohoOAuth::getClientInstance();
    $refreshToken = "paste_the_refresh_token_here";
    $userIdentifier = "provide_user_identifier_like_email_here";
    $oAuthTokens = $oAuthClient->generateAccessTokenFromRefreshToken($refreshToken,$userIdentifier);

I then tried the Get List of Modules as outlined in the docs:  https://www.zoho.com/crm/help/api/v2/#Modules-APIs

This resulted in the error: invalid oauth scope to access this URLOAUTH_SCOPE_MISMATCH