D2lvalenceElixir.Utils.Service.create_user

You're seeing just the function create_user, go back to D2lvalenceElixir.Utils.Service module for more information.
Link to this function

create_user(user_context, create_user_data, options \\ [])

View Source

Specs

create_user(
  %D2lvalenceElixir.Auth.D2LUserContext{
    anonymous: term(),
    app_id: term(),
    app_key: term(),
    encrypt_requests: term(),
    host: term(),
    scheme: term(),
    server_skew: term(),
    user_id: term(),
    user_key: term()
  },
  %D2lvalenceElixir.Data.CreateUserData{
    external_email: term(),
    first_name: term(),
    is_active: term(),
    last_name: term(),
    middle_name: term(),
    org_defined_id: term(),
    role_id: term(),
    send_creation_email: term(),
    user_name: term()
  },
  serializers: map(),
  ver: String.t(),
  body: list()
) ::
  {:error, String.t()}
  | {:ok,
     %D2lvalenceElixir.Data.UserData{
       activation: term(),
       external_email: term(),
       first_name: term(),
       is_active: term(),
       last_name: term(),
       middle_name: term(),
       org_defined_id: term(),
       org_id: term(),
       unique_identifier: term(),
       user_id: term(),
       user_name: term()
     }}

Creates the user with the information provided.

Returns

{:error, cause} when an error is caused.

{:ok, %D2lvalenceElixir.Data.UserData{}} the result contains the information created.

Options

version: version of the component to verify. If not specified, will get the version of the component. serializers: Map of availaber serializers. application/json recommended. body: Options to pass to the body of the request.