Folders restricted by MoodleID (Not Profile ID)

Folders restricted by MoodleID (Not Profile ID)

by Marie Waterhouse -
Number of replies: 1
Running moodle 3.9
Hello,
I would like to add individual names certificates to folders in my course instance.
I am creating individual folders and putting the named certificates in the folders.
I would like to restrict access based on the users Moodle ID
Under the restrict access option there is only the option to restrict by ID number which is a profile field

I have tried a hack by creating a hidden userprofile field HACKUSERID and entering a default value {userid} in the hope that filter codes can help but this does not appear to work after a first pass attempt.

Is there a way to restrict access to folders based on MoodleID?
Is there another way to get the same result?

Many thanks
Marie

Average of ratings: -
In reply to Marie Waterhouse

Re: Folders restricted by MoodleID (Not Profile ID)

by Joost Elshoff -
Picture of Particularly helpful Moodlers Picture of Testers
There are easier ways to distribute a certificate to your students... have you explored possibilities there? Seems to me that you're trying to solve something with restrict access, that can be solved by any of the following plugins: https://moodle.org/plugins/?q=certificate