sysadminctl unable to create users with specified UID/Unique ID

I have recently upgraded one my Macs to Ventura. Normally I create users using the sysadminctl command as I would like to control the UID/GID of some of users I create for file sharing purposes. I have always been able to do this with the below command


In Ventura the user is created but the next uid in the 500 range is used not the one that I specified. The command out shows and error that may be related.


Does anyone know if there is a way to create local users with a specific UID. Thanks!


sysadminctl -addUser <name> -fullName "First Last" -UID <integer>

Error:-14120 Library/Caches/com.apple.xbs/Sources/Admin/DSRecord.m Line:418

Mac mini, macOS 10.12

Posted on Feb 26, 2023 1:59 PM

Reply

Similar questions

1 reply

Feb 28, 2023 2:06 PM in response to TokenRain

Hello TokenRain,


Thank you for reaching out to Apple Support Communities.


The best way to create a user would be to follow these steps:


"Add a user

  1. On your Mac, choose Apple menu  > System Settings, then click Users & Groups  in the sidebar. (You may need to scroll down.)
  2. Click the Add Account button below the list of users on the right (you may be asked to enter your password.)
  3. Click the New Account pop-up menu, then choose a type of user.
    • Administrator: An administrator can add and manage other users, install apps, and change settings. The new user you create when you first set up your Mac is an administrator. Your Mac can have multiple administrators. You can create new ones, and convert standard users to administrators. Don’t set up automatic login for an administrator. If you do, someone could simply restart your Mac and gain access with administrator privileges. To keep your Mac secure, don’t share administrator names and passwords.
    • Standard: Standard users are set up by an administrator. Standard users can install apps and change their own settings, but can’t add other users or change other users’ settings.
    • Sharing Only: Sharing-only users can access shared files remotely, but can’t log in to the computer or change settings. To give the user permission to access your shared files or screen, you may need to change options in File Sharing, Screen Sharing, or Remote Management settings. See Set up file sharing and Share the screen of another Mac. For more information about the options for each type of user, click the Help button in the lower-left corner of the dialog.

4.Enter a full name for the new user. An account name is generated automatically. To use a different account name, enter it now—you can’t change it later.

5.Enter a password for the user, then enter it again to verify. Enter a password hint to help the user remember their password.

6.Click Create User.

7.Depending on the type of user you create, you can also do any of the following:

    • For an administrator, select “Allow user to administer this computer.”
    • Select “Allow user to reset password using Apple ID.” To use this option, the user must have set up iCloud on this Mac. However, this option isn’t available if FileVault is turned on and set to allow the user to reset their password at startup using their Apple ID.
  • Use Sharing settings to specify whether the user can share your files and share your screen.
  • For information about Apple’s privacy policy, see the Apple Privacy Policy website.


More details can be found here: Add a user or group on Mac


After you create the user, check to see if you are having any issues and let us know the results.


Cheers!


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sysadminctl unable to create users with specified UID/Unique ID

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.