by Christelle PREMEL-CABIC.
Hello
1/ You need to add the moodle/site:viewuseridentity capacity to the User used in your taken (or his role)
2/ I just tried to generate a token restricted to IP 127.0.0.1 but while using it, it does not work. I get this answer:
<EXCEPTION class="webservice_access_exception">
<ERRORCODE>accessexception</ERRORCODE>
<MESSAGE>Exception du contrôle d'accès</MESSAGE>
</EXCEPTION>
Anybody facing the same issue?