"invalid oauth scope to access this URL" when trying to retrieve info

"invalid oauth scope to access this URL" when trying to retrieve info

Hi,

I'm receiving "invalid oauth scope to access this URL" when trying to get curent user:


  1. $rest=ZCRMRestClient::getInstance();
  2. $users=$rest->getCurrentUser()->getData();
I've tried two scopes:
aaaserver.profile.READ and ZohoCRM.Modules.ALL

None of them are working.

Maybe someone can help. If need any more info - let me know.