AnsweredAssumed Answered

Use RESTAPI to get  members for a role in a course

Question asked by jkchu_bb on Mar 1, 2019
Latest reply on Mar 1, 2019 by jkchu_bb

I am trying to get course members for a roleid by passing role as a query parameter. In this case I set role to Instructor and availailability.available to Yes.  However I am getting back all roles

 

url[https://princeton-stage.blackboard.com/learn/api/public/v1/courses/courseId:AAS302-SOC303_S2019/users?role=Instructor&availability.available=Yes]

page[{"results":[{"userId":"_1645499_1","courseId":"_6120989_1","dataSourceId":"_2909_1","created":"2018-10-31T16:12:26.530Z","availability":{"available":"Yes"},"courseRoleId":"Instructor"},{"userId":"_2045_1","courseId":"_6120989_1","dataSourceId":"_2_1","created":"2019-02-08T21:50:27.610Z","availability":{"available":"Yes"},"courseRoleId":"Instructor","lastAccessed":"2019-02-28T19:02:37.304Z"},{"userId":"_2663_1","courseId":"_6120989_1","dataSourceId":"_2843_1","created":"2019-02-27T15:53:07.741Z","availability":{"available":"Yes"},"courseRoleId":"Student"},{"userId":"_2435_1","courseId":"_6120989_1","dataSourceId":"_2_1","created":"2019-02-26T13:43:53.168Z","availability":{"available":"Yes"},"courseRoleId":"Student"}],"paging":{"nextPage":"/learn/api/public/v1/courses/courseId:AAS302-SOC303_S2019/users?availability.available=Yes&offset=4&role=Instructor"}}]

nextPage[/learn/api/public/v1/courses/courseId:AAS302-SOC303_S2019/users?availability.available=Yes&offset=4&role=Instructor]

cnt[4]

i[0]member[ruhab|Instructor]

i[1]member[jkchu|Instructor]

i[2]member[fleming|Student]

i[3]member[serge|Student]

Outcomes