Get profiles for all institution users

Query profiles for all institution users

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
integer
≥ 1
Defaults to 1

(Optional) - The page number of the items to return. The number of items in a page is controlled by the pageSize parameter.

integer
1 to 100
Defaults to 25

(Optional) - The max number of items to return. Setting a larger pageSize will default to 100 spaces.

string

Filter users using a Base64-encoded JSON object.

Omit filters when you do not want to supply filter criteria.

Choose the fields below, serialize the object to JSON, and Base64-encode the UTF-8 bytes. Enter the encoded value in the filters input. These fields belong inside the JSON object; they are not separate query parameters.

Provide one or more properties to apply filters.

Decoded filter fields

FieldTypeDescription
querystringSearch by a user's name Example: "John Doe".
rolesarray of stringsThe list of roles you'd like to accept as part of the user filter Allowed values: InstitutionAdmin, SiteAdmin, Teacher, Student.
sitesarray of stringsFilter by site Each item: mongodb id (12 byte hex string). Example: ["507f1f77bcf86cd799439011"].
customAttributesarray of stringsFilter by user custom attributes Example: ["NydvLFSpxOJe2aO07hGxU"].

Example before encoding

{
  "roles": [
    "Teacher"
  ]
}

Base64 value for the filters input

eyJyb2xlcyI6WyJUZWFjaGVyIl19

Example request

/users?filters=eyJyb2xlcyI6WyJUZWFjaGVyIl19

Encode inline in Node.js

const criteria = {"roles":["Teacher"]};
const params = new URLSearchParams({
  filters: Buffer.from(JSON.stringify(criteria), "utf8").toString("base64")
});
const path = "/users?" + params.toString();

Base64 encoding and URL encoding are separate steps. An HTTP client query-parameter helper can URL-encode the Base64 value for you. If constructing the URL manually, URL-encode the value once so +, /, and = are preserved.

Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json