Get all the users that has access to specific context

Get all the users that has access to specific context

by Y S -
Number of replies: 1

hello,

I have moodle 3.2.

I want to write a function that return all the users that has access to specific context.

if the course's enrolments method include self enrolment the function returns all the users that can enrol themselves and if the course's enrolments method include guest access all the users return. 

thanks.

Average of ratings: -
In reply to Y S

Re: Get all the users that has access to specific context

by T W -

Good question!

I also need this possibility...

Any answer?

Thanks,

TW