Open ghost opened 10 years ago
Hi Andy,
Give it a go - if you run into problems with the code, I'll help you.
Hi,
i'm also interested in having users unenrolled the way Andy proposed. If there any progress in that please inform.
Thanks!
This is a WIP. Should be available soon™
Thanks Daniel,
looking forward to it!
This seems to be available now:
moosh course-unenrol 1005 508
Will unenroll user 508 from course 1005. But how can I run it with multiple user IDs at once?
@icefresh89 if you pull the newest version from github you should be able to unenrol multiple users by providing their id numbers e.g. course-unenrol 1005 508 509 510
@dkns You're the man! Thank you so much!
@zom-rpg @ElSt Could you pull newest version from github and let me know if this is the intended functionality you had in mind? Thanks.
I think it would be great if the Course-Unenrol function didn't remove all users with a certain role, but allowed you to specify a user id number so it would be like:
mouse course-unenrol --role rolegoeshere --user userid courseid moosh course-unenrol --role editingteacher --user 1 144
I could take a crack at it, but wondered if it would be easier for you to look at if you thought it was a useful change.