Sends a POST request to the MotherDuck REST API to create a new user
within your organization. This operation requires administrative privileges
and a valid access token.
A tibble summarizing the API response, typically containing the newly created
username and associated metadata.
Arguments
user_name
A character string specifying the MotherDuck user name whose
tokens should be listed.
motherduck_token
Character. Either the name of an environment variable containing your
MotherDuck access token (default "MOTHERDUCK_TOKEN") or the token itself.
Details
This function calls the
MotherDuck Users API
endpoint to create a new user under the authenticated account.
The provided token 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()
if (FALSE) {
# Create a new user in MotherDuck using an admin token stored in an environment variablecreate_md_user("test_20250913", "MOTHERDUCK_TOKEN")
}