API Command for limiting user privileges to their section?

Jump to solution
jmohr1
Community Explorer

I am completely stuck on this one. I am an instructor. I have a mutli-section course. I need to limit students to only see students in their sections. I am tired of doing it for each user.

Does anyone know the API command (and where to send it?) to limit student privileges to their sections? I'm working with python here. I'm assuming it has to go to enrollments/:id but I'm not sure what to send there. I appreciate any help here.

...Or if anyone knows of a userscript that's a little more accessible that I could pass around to my colleagues. My last resort will be to write an autohotkey script to push the button for me.

Labels (1)
0 Likes
1 Solution
jmohr1
Community Explorer
Author

Just to update on this... I was unable to do more than use the API to identify students who did not have the privilege-already changed. I used a script to download the userIDs of those students and then paired that with Selenium to go through those students and open their course-specific pages in a robo-browser and click the change-privilege button for me.

View solution in original post

0 Likes