DirectAdmin includes a fairly complete API you can use. While technically you can manage DirectAdmin users with file manipulation, it's not a good idea to try to do so; it would be possible to lose data if DirectAdmin were making a change to a file at the same time you were making a different change.
Jeff