貼文的作者是 Jerry Lau

strange how it worked on pre version 4.x but no longer

what would upgrading to 4.2 or higher make that difference when it won't work on 4.1?

what would the cause of the error be? Moodle bug in 4.1? 
Running Moodle 4.1.x using MS as authentication

so we read the documentation and all seems to work until we selected the 2nd radio button - Create an access controlled link to the file.

We wanted to do to save file.

When we hit save/submit, we get the general exception message " Exception - notAllowed: The operation failed because sharing has been disabled on this site".

Who are they referring to when they said "... on this site"? Which site? moodle or the ms side?

see attached images

附件 Capture.PNG
附件 Capture2.PNG
評比平均分數: -
are you on Linux/Nix, Windows or on a Mac?

which version of moodle are you on?

Has this happen before? If so, were any changes made after the last successful run?

Try and restart (or better yet, kill and start/restart) your cron or scheduler processes

Make sure there is enough space in your disk/storage where temp files go. ie. delete your trashdir folder

check your moodle log files/reports

try and run your cron manually and see what shows up in the terminal /usr/bin/php /path/to/moodle/admin/cli/cron.php