Skip to main content
Question

dscl and sysadminctl command


Asifahmed
Forum|alt.badge.img+9

What is the main difference between dscl and sysadminctl commands in macOS?

4 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3540 replies
  • July 12, 2023

@Asifahmed In a nutshell the sysadminctl command is the modern tool for user account creation, change, and deletion where most tasks can be done with a  single command. The dicl command only does part of the work for you because it's only for manipulating the Directory Services database, and if you're using it in your workflow to add or delete accounts there are additional commands/tools required. 


Asifahmed
Forum|alt.badge.img+9
  • Author
  • Contributor
  • 174 replies
  • July 12, 2023
sdagley wrote:

@Asifahmed In a nutshell the sysadminctl command is the modern tool for user account creation, change, and deletion where most tasks can be done with a  single command. The dicl command only does part of the work for you because it's only for manipulating the Directory Services database, and if you're using it in your workflow to add or delete accounts there are additional commands/tools required. 


dscl can manage LDAP user what I think, sysadminctl can do the same also?

sysadminctl can do same as profile command?


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3540 replies
  • July 12, 2023
Asifahmed wrote:

dscl can manage LDAP user what I think, sysadminctl can do the same also?

sysadminctl can do same as profile command?


What exactly are you trying to do with dscl or sysadminctl? My recommendation would be to look at the sysadminctl tool and if it has the capability to do what you need (e.g. create or delete a user account) then use it.

What exactly are you asking by "sysadminctl can do same as profile command"? sysadminctl is a tool for administering user accounts, it's not a configuration profile tool. 


Asifahmed
Forum|alt.badge.img+9
  • Author
  • Contributor
  • 174 replies
  • July 12, 2023
sdagley wrote:

What exactly are you trying to do with dscl or sysadminctl? My recommendation would be to look at the sysadminctl tool and if it has the capability to do what you need (e.g. create or delete a user account) then use it.

What exactly are you asking by "sysadminctl can do same as profile command"? sysadminctl is a tool for administering user accounts, it's not a configuration profile tool. 


make sense, profile command deals with config profile only as per Apple site. Thanks for clarification.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings