Allow free course registrations to user with 365 login

Allow free course registrations to user with 365 login

by Sikander Nawaz -
Number of replies: 8

In my Moodle site I need to offer free registration for the paid courses , for the users who are logging in through 365 login (open id connect)

can someone advise me how can i achieve that, if there is any plugin that can be used 

Average of ratings: -
In reply to Sikander Nawaz

Re: Allow free course registrations to user with 365 login

by C Behan -
I believe you can do this with Auto Enrol plugin https://moodle.org/plugins/enrol_autoenrol
You can set it that a users with a particular authentication method are enrolled automatically on courses where you add this enrolment method.
In reply to C Behan

Re: Allow free course registrations to user with 365 login

by Sikander Nawaz -
Hi Thanks for your reply . I did following steps

1- installed Auto Enrol plugin https://moodle.org/plugins/enrol_autoenrol
2- Enabled Auto Enrol in Enrolments section from dashboard
3- Default role assignment is set to Student
4- Now for selected course i added Auto Enrol as enrolment method with following settings
4.1 Group By : Authentication
4.2 Allow Only : oidc
4.3 Soft Match : No
Limit : 0

Now after doing this i logged in using 365, in db my enrolment method is oidc but then i am not enrolled in this course.

One more thing : I enrolled in a course manually after 365 login but when i go to my course in Dashboard it takes me back to my profile page rather than the course

Can you please advise me what am i missing
Thanks
In reply to Sikander Nawaz

Re: Allow free course registrations to user with 365 login

by C Behan -
You didn't mention what they have to do to be enrolled on that course. Be default, it's set a at 'enrol on course view'. You probably need to change that to 'user login'.

Your other issue, I don't know - maybe a theme issue? It might be worth posting a new discussion on that.
In reply to C Behan

Re: Allow free course registrations to user with 365 login

by Sikander Nawaz -

I was unable to find this option 

Below is the screenshot from course enrolment methods 


Screenshot from course enrolment methods

And below from the plugin settings 


Please advise what exactly do i have to do here 

Thanks 

In reply to Sikander Nawaz

Re: Allow free course registrations to user with 365 login

by C Behan -
Nearly there! Click on 'show more' (under custom welcome message), and more options will appear above.
In reply to C Behan

Re: Allow free course registrations to user with 365 login

by Sikander Nawaz -
This did the trick, Courses are now being assigned.

Thanks a lot for help

Cheers
In reply to Sikander Nawaz

Re: Allow free course registrations to user with 365 login

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
For the second issue, are you taken back to the ‘edit profile’ page or the ‘view profile’ page? If the first, do you have any required profile fields that are empty?
In reply to Jon Bolton

Re: Allow free course registrations to user with 365 login

by Sikander Nawaz -
It was probably some cache or required fields issue now its sorted