You can't directly create a guest user in Moodle. Moodle doesn't have a built-in guest user feature. Instead, you can create a special type of user account with limited access, resembling a guest user.
Here's how you can achieve this:
1. Create a "Guest" Role:
- Navigate to Site administration > Users > Permissions > Define roles.
- Click "Add a new role".
- Name the role "Guest" or something similar.
- Assign specific permissions to this role. For example, you can give them access to view certain courses or forums but restrict their ability to post or edit content.
2. Create a User Account with the "Guest" Role:
- Go to Site administration > Users > Accounts > Create new user.
- Fill in the required user information.
- Select the "Guest" role you created earlier.
- Save the user account.
This user account will have the permissions defined in the "Guest" role. You can create multiple user accounts with this role for different guests.
3. Alternative Approach: Using "Guest" Enrolment:
- You can also use the "Guest" enrolment method to allow access to specific courses.
- Go to the course settings and under "Enrolment methods" select "Guest".
- This allows anyone with the course URL to access the course without needing an account.
Remember:
- You can adjust the permissions of the "Guest" role based on your needs.
- If you want to restrict access to specific content, you can use the "Guest" enrolment method for individual courses.