Set the RunAs
user for a piece of content.
The run_as_current_user
flag only does anything if:
Details
PAM is the authentication method
Applications.RunAsCurrentUser
is enabled on the server
Also worth noting that the run_as
user must exist on the Posit Connect
server (as a linux user) and have appropriate group memberships, or you will
get a 400: Bad Request
. Set to NULL
to use the default RunAs user / unset
any current configuration.
To "read" the current RunAs user, use the Content
object or get_content()
function.
See also
connectapi::content_update
Other content functions:
content_delete()
,
content_item()
,
content_title()
,
content_update()
,
create_random_name()
,
dashboard_url()
,
dashboard_url_chr()
,
delete_thumbnail()
,
delete_vanity_url()
,
deploy_repo()
,
get_bundles()
,
get_environment()
,
get_image()
,
get_job()
,
get_jobs()
,
get_thumbnail()
,
get_vanity_url()
,
git
,
has_thumbnail()
,
permissions
,
set_image_path()
,
set_thumbnail()
,
set_vanity_url()
,
swap_vanity_url()
,
terminate_jobs()
,
verify_content_name()