refresh_user_field_schema
Discovers available user fields from a Moodle instance and updates the field schema to reflect changes, such as added or removed custom profile fields.
Instructions
Discover all available user fields from the connected Moodle instance and create or update the user field schema. Samples standard fields from the current user and custom profile fields from enrolled users across courses. Use this when: connecting to a new Moodle instance for the first time, or after a Moodle admin adds/removes custom profile fields, or when the operator asks to 'refresh the user fields'. Optional 'force' parameter (default false): when true, re-merges all fields from scratch (operator overrides on still-existing fields are preserved). When false, compares discovered fields against the stored schema and only updates if there are differences to report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force a full re-merge from scratch even if nothing changed |