Retrieve a course membership roster from a platform using LTI 1.3 Names and Role Provisioning Services

domain: imsglobal.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. During the LTI 1.3 launch, extract the context_memberships_url from the https://purl.imsglobal.org/spec/lti-nrps/claim/namesroleservice claim in the id_token JWT
  2. Use the client_id and platform OIDC token endpoint to request a service access token with scope https://purl.imsglobal.org/spec/lti-nrps/scope/contextmembership.readonly
  3. GET the context_memberships_url with Authorization: Bearer {token} and Accept: application/vnd.ims.lti-nrps.v2.membershipcontainer+json
  4. Parse the members array in the response; each member includes user_id, roles (Learner, Instructor, etc.), and optionally name and email if permitted
  5. Follow the Link: rel=next header if present to page through rosters larger than the platform's default page size
  6. Cache the roster keyed by user_id and refresh on a scheduled basis or on each new tool launch for that context

Known gotchas

Related routes

Implement the LTI Advantage Names and Role Provisioning Service (NRPS) to retrieve full course membership from the platform
imsglobal.org · 6 steps · unrated
Use LTI Advantage Names and Role Provisioning Services (NRPS) to page through a full course membership and detect newly added or dropped members since the last sync
imsglobal.org · 6 steps · unrated
Retrieve and paginate Names and Role Provisioning Services (NRPS) membership when the context_memberships_url points to a large roster
imsglobal.org · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans