3.1.5.4 Create Pattern

msdn link

These methods enable a client to create a group, alias, or user object. These methods require a domain handle from the "open" pattern of methods (section 3.1.5.1).

See section 1.7.2 for details on how to choose between the SamrCreateUserInDomain and SamrCreateUser2InDomain variations.

See section 1.3 for a description of the "create" pattern of methods.