polished (version 0.5.0)

add_app_user: Polished API - Add a User to an App

Description

Polished API - Add a User to an App

Usage

add_app_user(
  app_uid,
  user_uid = NULL,
  email = NULL,
  is_admin = FALSE,
  send_invite_email = FALSE,
  api_key = getOption("polished")$api_key
)

Arguments

app_uid

the app uid.

user_uid

an optional user uid for the user to be invited to the app.

email

an optional email address for the user to be invited to the app.

is_admin

boolean - whether or not the user is a Polished admin.

send_invite_email

boolean - whether or not to send the user an invite email notifying them they have been invited to access the app.

api_key

your Polished API key. Set your polished api key using set_api_key() so that you do not need to supply this argument with each function call.

Details

supply either the user_uid or email. If both are provided, then the user_uid will be used, and the email will be ignored.

See Also

get_app_users() update_app_user() delete_app_user()