# Create a new user in MotherDuck
create_md_user("new_user_name")Create a new MotherDuck user
Source: R/api.R
Sends a POST request to the MotherDuck REST API to create a new user within your organization. This operation requires administrative privileges.
Usage
create_md_user(user_name)Arguments
Value
A tibble summarizing the API response, typically containing the newly created username and associated metadata.
Details
This function calls the MotherDuck Users API endpoint to create a new user under the authenticated account. The token from the MOTHERDUCK_TOKEN environment variable must belong to a user with permissions to manage organization-level accounts.
See Also
Other db-api: configure_md_user_settings(), create_md_access_token(), delete_md_access_token(), delete_md_user(), list_md_active_accounts(), list_md_user_instance(), list_md_user_tokens(), show_current_user()