A class used to create new Users using the builder pattern. When all desired fields are set, call Post to create the user.
More...
|
CreateUserBuilder | WithName (string name) |
| The full name of the user. This name will be used by teacher for grading. Required if this is a self-registration. More...
|
|
CreateUserBuilder | WithShortName (string shortName) |
| The user's name as it will be displayed in discussions, messages, and comments. More...
|
|
CreateUserBuilder | WithSortableName (string sortableName) |
| The user's name as used to sort alphabetically in lists. More...
|
|
CreateUserBuilder | WithTimeZone (string timeZone) |
| The time zone for the user. The allowed time zone formats are IANA time zones or Ruby on Rails time zones. More...
|
|
CreateUserBuilder | WithLocale (string locale) |
| The user's preferred language, from the list of languages Canvas supports, in RFC-5646 format. More...
|
|
CreateUserBuilder | WithBirthDate (string date) |
| The user's birth date. More...
|
|
CreateUserBuilder | WithTermsOfUseAccepted (bool hasAcceptedTerms=true) |
| Whether the user accepts the terms of use. Required if this is a self-registration and this canvas instance requires users to accept the terms. More...
|
|
CreateUserBuilder | WithSkipRegistration (bool skipRegistration=true) |
| Automatically mark the user as registered. If this is true, it is recommended to set WithSendConfirmation to true as well. More...
|
|
CreateUserBuilder | WithUniqueId (string uniqueId) |
| The user's login ID. If this is a self-registration, it must be a valid email address. Always required. More...
|
|
CreateUserBuilder | WithPassword (string password) |
| The user's password. Cannot be set during self-registration. More...
|
|
CreateUserBuilder | WithSisUserId (string sis) |
| SIS ID for the user's account. To set this parameter, the caller must be able to manage SIS permissions. More...
|
|
CreateUserBuilder | WithIntegrationId (string integrationId) |
| Integration ID for the login. To set this parameter, the caller must be able to manage SIS permissions. The Integration ID is a secondary identifier useful for more complex SIS integrations. More...
|
|
CreateUserBuilder | WithSendConfirmation (bool shouldSendConfirmation=true) |
| Send user notification of account creation if true. Automatically set to true during self-registration. More...
|
|
CreateUserBuilder | WithForceSelfRegistration (bool shouldForceSelfRegistration=true) |
| Send the user a self-registration email. More...
|
|
CreateUserBuilder | WithAuthProviderId (string authProviderId) |
| The authentication provider this login is associated with. More...
|
|
CreateUserBuilder | WithCommunicationChannelType (string type) |
| The communication channel type, e.g. 'email' or 'sms'. More...
|
|
CreateUserBuilder | WithCommunicationChannelAddress (string address) |
| The communication channel address, e.g. the user's email address. More...
|
|
CreateUserBuilder | WithCommunicationChannelConfirmationUrl (bool returnUrl=true) |
| Only valid for account admins. If true, returns the new user account confirmation URL in the response. More...
|
|
CreateUserBuilder | WithSkipCommunicationChannelConfirmation (bool skip=true) |
| Only valid for site admins and account admins making requests. If true, the channel is automatically validated and no confirmation email or SMS is sent. Otherwise, the user must respond to a confirmation message to confirm the channel. More...
|
|
CreateUserBuilder | WithForceValidations (bool force=true) |
| If true, validations are performed on the newly created user (and their associated pseudonym), even if the request is made by a privileged user like an admin. More...
|
|
CreateUserBuilder | WithSisReactivation (bool enable=true) |
| When true, will first try to re-activate a deleted user with matching sis_user_id if possible. More...
|
|
CreateUserBuilder | WithDestination (string url) |
| A canvas URL to be used as a redirect destination. More...
|
|
Task< User > | Post () |
| Creates a new user using the fields in this builder. More...
|
|
A class used to create new Users using the builder pattern. When all desired fields are set, call Post to create the user.