> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/canvas/permissions/details/file.permissions_manage_temporary_enrollments.md).

# Users - Temporary Enrollments

## What it Does

### Manage Temporary Enrollments

Temporarily enroll a user into a course. This temporary enrollment is paired up with another enrollment within the course.

The temporarily enrolled user can only view and participate in a course between the start and end dates that were chosen when making the temporary enrollment.

### Temporary Enrollments - add

Allows users to add a temporary enrollment with a start date, end date, and role

### Temporary Enrollments - edit

Allows users to edit an existing temporary enrollment

### Temporary Enrollments - delete

Allows users to delete a temporary enrollment

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developerdocs.instructure.com/services/canvas/permissions/details/file.permissions_manage_temporary_enrollments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
