I'm trying to consume Moodle web services but they respond accessexception. I already generated the Token and enabled the web services from the Moodle administration module.
my endpoint
http://MyMoodle/moodle/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_group_get_course_user_groups&wstoken={my_token}
is returning the following exception:
{
"exception": "webservice_access_exception",
"errorcode": "accessexception",
"message": "Excepción al control de acceso"
}