The Names and Roles Provisioning Service supports an optional role query parameter to filter members by role: https://www.imsglobal.org/spec/lti-nrps/v2p0#role-query-parameter.
It seems that the NamesRolesProvisioningService
class in this library does not support this role parameter. It would be nice if this was supported. In some cases this filtering can make queries quite a bit faster. In one larger course in our Moodle the full get_members
request takes about 500 ms to get all members, but only 200 ms to get all members with instructor role.