'User list' endpoint returns no data

I am trying to use 'User list' endpoint to retrieve list of students using 'Try it'. I set 'Roles' parameters to 14 (Student) and this is the result:

Response status

200 OK


Response latency

329 ms


Response content

x-content-type-options: nosniff

x-envoy-upstream-service-time: 186

strict-transport-security: max-age=31536000; includeSubDomains

Date: Tue, 08 Jun 2021 15:40:11 GMT

Content-Length: 37

Content-Type: application/json; charset=utf-8


{

"count": 0,

"next_link": "",

"value": []

}

What am I missing?


Thank you.

Comments

  • Brian Gray
    Brian Gray Community All-Star
    Eighth Anniversary Kudos 5 First Reply bbcon 2025 Attendee Badge
    14 is the BASE role ID for students. This endpoint requires the role ID - not the BASE role ID. You can get both values for all roles from the Role List endpoint.


    Note that the User List Extended endpoint requires BASE role IDs.

  • Thank you, Brian

Categories