Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

setup_command_line_user()

Description

Set up a dummy user with required permissions etc. to pass permission checks if running scripts from the command line

e.g.
["username" => "My Application",
"permissions" => "h,v,e0",
"groupname => "My Application",
"resource_defaults => "region=EMEA",
]

Parameters

ColumnTypeDefaultDescription
$setoptions array
can these
t
v
e-2
e-1
e0
e1
e2
true;
any plus columns_in"user"
null
columns_in"usergroup"
$options[]] array Array of optional user options. Will default to generic system admin permissions if not set

Return

bool *

This article was last updated 19th July 2024 21:35 Europe/London time based on the source file dated 10th July 2024 09:50 Europe/London time.