Get all the users in a given role at the Org Unit Level

33 views
Skip to first unread message

Pat Jones

unread,
Nov 3, 2014, 4:32:49 PM11/3/14
to valenc...@googlegroups.com


Valence Team,
I would like to be able to get all of the users in a particular role (at the org level) in a single call to the API.  I currently use this functionality in the "OLD" API. 
 
The use case:  we have users in the "auditor" role in the LMS and to keep these user accounts "synced" with the student management system I need to get all of the users in this role so I can add new auditors and/or disable users who are no longer "auditors".
 
Is there currently a way to access users give the role they are assigned at the Org Level?
 
If the functionality doesn't exist, are there plans to add it, especially before the "OLD" web services are deprecated/obsolete?
 
Thank you,
Pat

Desire2Learn Staff: Sarah-Beth

unread,
Nov 3, 2014, 5:05:09 PM11/3/14
to valenc...@googlegroups.com
Hi Pat

Roles are effectively bound up with the enrollment in an org unit. Viktor explains how this works in another thread (See Viktor's response to item #2 in the post flagged as the Best Answer).

Take a look at that description and let me know if that helps you get what you're looking for. If not, can you describe the use case in more detail?

~Sarah-Beth

Pat Jones

unread,
Nov 3, 2014, 5:28:28 PM11/3/14
to valenc...@googlegroups.com

Sarah-Beth,

Thank you for your prompt reply.

 

Here is further explanation of the use case:

 

I have a system that assigns Auditors to individual students.   Theses auditors and their associated students are managed in our Student Management System (SMS).

 

The system I have set up to create the users assigned the “Learner Services Advisor” role (at the org unit level) in D2L first gets a listing of those users assigned the “Learner Services Advisor” role in D2L and compares that list to a list of advisors from the SMS.  The difference between the user (advisor) list from D2L and the list from the SMS indicates if I need to create new users (advisors) in D2L or if I need to inactive an advisor in D2L.

 

I would like to make a single call to the Valence API to get the list of advisors (users in the “Learner Services Advisor” role) from D2L rather than making an individual calls to the API for each individual user based on their orgDefinedId, which doesn’t return Role Information for the organization level.

 

Currently I use the old Webservices to get users in a given role…

 

Thank you,

Pat

Desire2Learn Staff: Sarah-Beth

unread,
Nov 4, 2014, 9:40:18 AM11/4/14
to valenc...@googlegroups.com
Hi Pat

You've hit on an interesting use case that can be used to support a future improvement to the APIs. The best way to log that feature request is thru the Product Ideas Exchange. I've found at least one existing idea posted that you could upvote to show your support. (Note: You'll need a login for the Brightspace Community to access the PIE.) I also recommend that you add a comment with this info about your use case. 

~Sarah-Beth
Reply all
Reply to author
Forward
0 new messages