Outils pour utilisateurs

Outils du site


local:moodlescript:language:adduser

MoodleScript: ADD USER

MoodleScript Script Engine

Effect

Creates a user in Moodle.

Syntax

  ADD USER <username> IDENTIFIED BY "<password> HAVING
  firstname: "<firstname>"
  lastname: "<lastname>"
  email: "<email>"
  [ idnumber: "<idnumber>"
    department: "<department"
    ... ]

Examples

  ADD USER harry.potter IDENTIFIED BY "f4t3f*z5'e" HAVING
  firstname: "Harry"
  lastname; "Potter"
  email: "harry.potter@poudlard.edu"
  idnumber: "1ST"
  department: "Gryffindor"

Specific attributes

  • username: The login identifier.
  • password: A password, for manual authentication. Must always be provided, even for other authentication types (even if empty). The “manual” password must comply with the password rules.

Default values

  • auth : “manual”

Impact on the execution stack context

The current user identifier is set to the id of the created user.

Back to the language index - Back to the component index

local/moodlescript/language/adduser.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki