Active Directory Create Users

How Can I create Users in Active Directory ?
What does this error means ?

Hi @Pranav_Singh1

Account Name you can pass “pranav.singh”
Password pass secure string variable.

Regards,
Kommi Jeevan.

I have tried with different complexities for password , but its not working .

Hi @Pranav_Singh1

Account Name*(string): The account name for which you want to change the password.
Password*(secureString): The new password for the account.

Here you Did’nt kept your account name in string like this “Pranav sing”
Second You have to change your variable type as a secure string
For that go to the Browse for type then search for System.security.secureString

Like this

cool,
Regards,
Gulshiyaa

1 Like

Okay then change the variable type as String

Still getting the same Error.

Use this in your default value

new system.Net.NetworkCredential(“”, “Test”).SecurePassword

instead of “Test” keep your password""

If you find it useful mark it as solution and close the thread.

Regards,
Gulshiyaa

1 Like

@gulshiyaa I tried your method , that error is gone but a new Error messages comes up.

Active Directory.xaml (4.6 KB)

Sorry @Pranav_Singh1

I dont no about that
But now password problem is sloved na?

@gulshiyaa Thanks for your effort. yes password problem is resolved.:slightly_smiling_face:

1 Like

If you find it useful mark it as solution and close the thread.

One cannot create user directly .
Before creating user we need to Add Active Directory Scope where we need to define the Distinguished Name and set the domain name and then only further operations like Create user , Delete user etc. can be performed.

I hope this will clear all your doubts.
Thank You.:slightly_smiling_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.