Groups and Group Members API give 403 Forbidden, but in web interface members are shown

Community Explorer


I'm currently developing a group app where the logged in user needs to find out who is a member of other groups in the course.

When I use the Groups API /api/v1/groups/:group_id to find information about a particular group the logged in user is not a member of, or Group Users API /api/v1/groups/:group_id/users, I get 403 Forbidden. Accessing the API about groups the logged in user IS a member of works fine.

This seems strange, because when I use the Course Groups API /api/v1/courses/:course_id/groups I get information about groups that fail with 403 in API's above.

And when I use the web interface as the logged in user, I can see the group under "People/Groups" and I can see the members.

Anyone have an explanation?

All the best,
Rolf Johansson

Labels (1)