N-central Help

Add Member to AD Group

Adds an Active Directory member to an Active Directory group.

Privileges

Normal

Input Parameters

Name Type Required Description
User Common Name String Yes The distinguished name of a user.
User sAMAccountName String No  
User DistinguishedName String No  
Group Common Name String No The distinguished name of the group to which the user will be added.
Group DistinguishedName String No  
Group sAMAccountName String No  
Domain String Yes The name of the root domain in which to search for the given group.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
User String Yes

Jsmith

Jon Smith

Group String Yes Marketing
Domain String Yes Abc.com