Get the two IDs
- Find the Student and keep the returned
studentId. Confirm the account has thestudentrole. - List Courses or Get the Course and keep its
courseId. - If needed, read the Student’s current Courses before granting access.
Grant access
Send your Administrator headers:Unit rather than a grant receipt. A repeated direct grant can fail. After a timeout or ambiguous result, check the Student’s current Course access before considering another call. If the Course already appears, stop and reconcile the result; current ownership alone does not identify which grant source created access. Do not retry automatically.
See the grantCourseOwnershipToStudent mutation reference for its supported arguments and return scalar.