Polished API - Add a User Role
add_user_role(
user_uid,
role_uid = NULL,
role_name = NULL,
api_key = get_api_key()
)a user uid.
an optional role uid.
an optional role name.
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.
one of either role_uid or role_name must be provided. If
both are provided, only the role_uid will be used.
get_user_roles() delete_user_role()