edubase_post_exam_users_generate
Generate exam accounts from configurable patterns and assign them to an exam. Create multiple users with placeholders for names, usernames, and passwords.
Instructions
Generate exam accounts from patterns and assign them to an exam. The following placeholders can be used in the patterns: {index} (the index of the generated account), {random:N} (a random alphanumeric string of N characters, unambiguous characters only in passwords), {number:N} (a random numeric string of N characters), {name} and {Name} (the name of the account, only when names is specified, as given and capitalized) and {username} (the generated username, in the name pattern only). Patterns are stored with the exam and reused as defaults for the next call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | exam identification string | |
| name | No | full name pattern, defaults to the pattern used previously for this exam, mandatory if the exam has no previously used pattern | |
| count | No | number of accounts to generate, between 1 and 500, ignored when names is specified (default: 1) | |
| names | No | list of names to generate the accounts for, either a list or a comma or newline separated string, the number of accounts generated is the number of names specified and count is ignored | |
| start | No | index to start the generation at (default: the index after the previously generated accounts, 1 for the first call) | |
| emails | No | list of email addresses for the generated accounts, either a list or a comma or newline separated string, only used together with names and the number of items must match the number of names, invalid addresses are replaced with a generated one | |
| password | No | password pattern, defaults to the pattern used previously for this exam, mandatory if the exam has no previously used pattern | |
| username | No | username pattern, defaults to the pattern used previously for this exam, mandatory if the exam has no previously used pattern |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | exam identification string | |
| users | Yes |