Get Roles for a specific Capability and Context

Get Roles for a specific Capability and Context

by Alex M -
Number of replies: 0

On /admin/roles/permissions.php?contextid=2155 I can assign a capability (viewhiddencourses) for a specific roles and the context ID 2155.

is there a webservice where I can fetch all the roles that have a give capability set for a specific context or course ID?

I checked https://docs.moodle.org/dev/Web_service_API_functions#Web_service_protocols and did not find anything about permission management.


Regards,


Alex

Average of ratings: -