The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
https://institution.instructure.com/accounts/1/users/000
On this endpoint the Enrollments are sorted alpha and it was hard for admins to easily search for a student's current enrollments. So I created a script that sorts- Current Enrollment, Completed Enrollment, and Unpublished Enrollment.
function sortCoursesPeopleView() {
const checkIfNull = async (selector) => {
while (document.querySelector(selector) === null) {
await new Promise((resolve) => requestAnimationFrame(resolve));
}
return document.querySelector(selector);
};
checkIfNull("#user-info-fieldsets").then(() => {
const enrollmentsFieldset = document.querySelector("#courses > #content");
enrollmentsFieldset.setAttribute("style","resize: vertical; overflow: scroll; font-size: 0.8em; height:200px;");
const subFieldset = document.querySelector("#courses_list > div > ul");
subFieldset.setAttribute("style", "margin-left: 5px; font-size: 0.9em; margin-bottom: 10px; overflow:auto");
let ulList = document.querySelector("#courses_list > div > ul");
let items = ulList.querySelectorAll("li");
for (
let i = 0, arr = ["active", "completed", "unpublished"];
i < arr.length;
i++
) {
for (let j = 0; j < items.length; j++) {
if (~(" " + items[j].className + " ").indexOf(" " + arr[i] + " "))
ulList.appendChild(items[j]);
}
}
});
}sortCoursesPeopleView();
That is All.
ALSO THIS NEW CANVAS COMMUNITY UI SUCKS
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in