Skip to content
Bart Reardon edited this page May 20, 2023 · 5 revisions

Excluding Users

If you want to exclude certain users from scripts that run in the login context (I.e. a local admin account or a static kiosk user), you can do so by updating Outset preferences.

The format is an array of usernames in the ignored_users dict:

{
    "ignored_users" = (
        Bob,
        Jane,
        Fred
    );
}

Note: This only affects login-once or login-every scripts. on-demand scripts can will still run in the current user context, even for excluded users.

Adding Users to Exclude

To add a username you want to exclude, use an MDM to deploy a configuration profile to the io.macadmins.Outset domain or create a boot-once script that runs Outset with the --add-ignored-user argument. You can string as many users as you want:

/usr/local/outset/outset --add-ignored-user FOO --add-ignored-user BAR

Or, you can add them individually:

/usr/local/outset/outset --add-ignored-user FOO
/usr/local/outset/outset --add-ignored-user BAR

Removing Users From Exclusion

To remove a username from the array, create a boot-once script that runs Outset with the --remove-ignored-user argument. You can string as many users as you want:

/usr/local/outset/outset --remove-ignored-user FOO --remove-ignored-user BAR

Or, you can remove them individually:

/usr/local/outset/outset --remove-ignored-user FOO
/usr/local/outset/outset --remove-ignored-user BAR