[Zoho Recruit API] How to list users by getUsers method by access token

[Zoho Recruit API] How to list users by getUsers method by access token

Hi team,

I found a question how to use https://recruit.zoho.eu/recruit/private/json/Users/getUsers API endpoint with access token authentication? It works well when using legacy authtoken, but with access tokens I'm getting errors like

curl --location --request GET 'https://recruit.zoho.eu/recruit/private/json/Users/getUsers?type=AllUsers&version=2' \
--header 'Authorization: Zoho-oauthtoken secret' 
{"response":{"error":{"code":"4836","message":"Invalid OAuthscope"},"uri":"/recruit/private/json/Users/getUsers"}}


curl --location --request GET 'https://recruit.zoho.eu/recruit/private/json/Users/getUsers?type=AdminUsers&version=2' \
--header 'Authorization: Zoho-oauthtoken secret' 
{"response":{"error":{"code":"null","message":"null"},"uri":"/recruit/private/json/Users/getUsers"}

Used in both curls access token has scopes ZohoRecruit.modules.all ZohoRecruit.users.all ZohoRecruit.org.all ZohoRecruit.settings.all.

Is there option to fix it somehow by proper call or there is any new API to read users with OAuth2 access token?

Thanks in advance for help here.