Permissions for enrollments

28 views
Skip to first unread message

Brian Looker

unread,
Sep 23, 2014, 9:44:20 AM9/23/14
to valenc...@googlegroups.com
I want to send a request to get a list of enrollments for a provided user (http://docs.valence.desire2learn.com/res/enroll.html#get--d2l-api-lp-(version)-enrollments-users-(userId)-orgUnits-). I would like Instructors to be able to do this, and I have edited the role permission for instructors to View User Enrollments at the organization level. After the change, the call still produces an empty result. Does anyone have any suggestions for what I could try to make this work?

Brian

Brian Looker

unread,
Sep 23, 2014, 11:30:41 AM9/23/14
to valenc...@googlegroups.com
I found a previous discussion on this topic (https://groups.google.com/d/msg/valenceusers/Mk3VoqcHC8A/-o8sLGoHK_QJ), and it may apply, but I don't want Instructors to be able to see others' enrollments, just their own. 

This route (http://docs.valence.desire2learn.com/res/enroll.html#get--d2l-api-lp-(version)-enrollments-myenrollments-) exists for looking up the current UC enrollments, but it lacks role information, which is necessary as the instructors may also be observers or students in other classes. My ultimate goal is to get back a list of enrollments for a user in which they are an instructor.

Desire2Learn Staff: Sarah-Beth

unread,
Sep 24, 2014, 10:28:38 AM9/24/14
to valenc...@googlegroups.com
Hi Brian

You did find the most relevant thread for this inquiry. As explained in the other thread, the APIs and related permissions are explicitly designed to treat the role information as privileged and effectively show them on an all-or-nothing basis, under the assumption that only highly privileged users would have access to this information.

Your use case offers a compelling reason to show a subset of the role information to less-privileged users to allow you to filter enrollments based on role in the org unit. The other thread provides some suggestions around creating a Service Account to retrieve and parse this data on behalf of a user, but warns about the potential risks with that approach. 

I'll reiterate another suggestion from the other thread - you can log a Feature Request through a Support ticket opened by your institution's Approved Support Contact. Or you can add this feature to the Product Ideas Exchange. (Note: You have to be a member of the old D2L Community Site in order to access that link.) Be sure to include the details of your use case, since it's a fairly compelling example.

~Sarah-Beth

Brian Looker

unread,
Sep 25, 2014, 2:47:07 PM9/25/14
to valenc...@googlegroups.com
Hi Sarah-Beth,

Thanks! I've talked with our site admin and she suggested the Product Ideas Exchange, so I'm on my way to post there.

Brian

Desire2Learn Staff: Sarah-Beth

unread,
Sep 25, 2014, 3:47:22 PM9/25/14
to valenc...@googlegroups.com
Sounds good. Feel free to post a link to your PIE idea when it's up, so that anyone with a login can help upvote the idea for you.

Brian Looker

unread,
Sep 26, 2014, 12:09:52 PM9/26/14
to valenc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages