The p2g_search_restrictions can be used to pre-filter content before it is offered to the instructor.
By default no search restrictions apply
Ignore anonymous and authenticated users
Since the LTI group used in your LMS is always member of the system groups "authenticated users" and "anonymous" all open content will automatically be part of the LTI search results.
Use the following custom parameter to narrow down the results to content where the LTI group is explicitly given permissions.
Only show user uploads
When you want a learner or instructor to allow only selecting their own uploaded content, you can use
Show content uploaded in the same course
If you only want to show content uploaded in the same course you can use either
However, in some cases the context_title or context_label can be changed during the course.