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:
-
ZCRMRestClient::initialize();
$oAuthClient = ZohoOAuth::getClientInstance();
$refreshToken = "paste_the_refresh_token_here";
$userIdentifier = "provide_user_identifier_like_email_here";
$oAuthTokens = $oAuthClient->generateAccessTokenFromRefreshToken($refreshToken,$userIdentifier);
This resulted in the error: invalid oauth scope to access this URLOAUTH_SCOPE_MISMATCH