Creating a Standard user in macOS

Managing user accounts with the appropriate privilege levels is essential for maintaining both security and operational efficiency in corporate environments. Standard (non-administrator) users help reduce security risks by preventing unauthorized system-level changes, while still allowing employees to perform everyday tasks without restrictions.

Through Applivery, IT teams can automate the creation of these standard accounts across all managed macOS devices, ensuring consistency, reducing manual work, and enforcing a strong least-privilege security model.

Step 1 - Create your script #

Copy and paste the following script into the editor, then adjust the necessary parameters:

  • USERNAME (username): The short name of the account to be created.
  • FULLNAME (Full Name): The full display name of the user.
  • PASSWORD (password): The password that will be assigned to the user.
				
					 #!/bin/sh  

export PATH=/usr/bin:/bin:/usr/sbin:/sbin  

#User details
USERNAME="User"  
FULLNAME="Full Name"  
PASSWORD="Password"  

# Create the user with the specified username, full name and password
sysadminctl -addUser "$USERNAME" -fullName "$FULLNAME" -password "$PASSWORD" 
				
			

Assign a descriptive name to the script and click on Create to save it.

Step 2 - Assign script to policy #

Next, go to any of your Policies (1) and select the Scripts (2) section from the left-hand menu. Click the + Add Script (3) button.

scripts-policy

Next, select the script by typing its name and choose the execution method, and add any required arguments.

Depending on the selected execution method, the script will run automatically in Loop or Once mode, or it can be manually triggered from the Actions section within the Applivery Agent when configured as On-demand.

on-demand-scripts

Creating standard users with limited privileges is a recommended security practice that helps safeguard macOS devices against unintended modifications or unauthorized access. Automating this process through Applivery ensures consistent configuration across the entire device fleet, supports compliance with internal policies, and minimizes operational overhead.

By leveraging Applivery’s scripting capabilities, IT teams can efficiently deploy standard user accounts at scale, maintain system integrity, and streamline the onboarding and management of macOS devices. This approach offers a simple, reliable, and repeatable method to enforce least-privilege access across your organization.

Updated on novembro 28, 2025
Was this article helpful?

On this page