Skip to content

Moodle

The Moodle integration connects your Moodle site, self-hosted or on MoodleCloud, to Oneleet, syncing the users of the site as user account assets. This lets Oneleet monitor who has access to your Moodle site.

  • Moodle users (user accounts), including whether each user can sign in

To set up the Moodle integration, navigate to Integrations > Add integration > Moodle.

Oneleet connects with a Moodle web service token and your site’s address. Sign in as a site administrator.

  1. Copy your site’s address without https://, e.g. example.moodlecloud.com.
  2. In Site administration → Users → Permissions → Define roles, create a role assignable at System level with webservice/rest:use, moodle/user:viewdetails, moodle/user:viewalldetails, moodle/user:viewhiddendetails, moodle/site:viewuseridentity, and moodle/site:viewfullnames.
  3. Create a user for Oneleet and assign it the role in Assign system roles.
  4. In Site administration → Server → Web services → External services, add an enabled service for authorised users only with the core_user_get_users and core_webservice_get_site_info functions, and authorise the new user.
  5. In Manage tokens, create a token for the new user and service, and copy it; Moodle only shows it once.
  6. Paste both values into the form in Oneleet and click Connect.