Create User in Active Directory using Boto3

0

I want to create a user (if not already exists) with password in Active Directory using boto3. I tried using Directory Services client, but it doesn't seem to have methods for creating / adding user. Only Workdocs client has create_user method, but I am not sure if this is the correct method. Also, even with this, I gave permission workdocs:CreateUser, but it is still complaining about this permission. I am stuck. Please help.

1 Answer
0

You are going to require a Microsoft / Active Directory specific library to create users such as the ldap library.

Boto3 does not cover 3rd party software such as AD.

profile picture
EXPERT
answered 4 months ago
  • Ok. But the Directory Service is from AWS. So, it doesn't support adding users, say with boto3. Sorry for being naive, but I just want to understand.

  • You use boto3 to deploy RDS MySQL server but to perform sql actions against MySQL you need a MySQL library for python and not boto3.

    The directory service is from AWS but it’s not AWS software. You still need to appropriate libraries.

    Another example is redis. You would need a redis library.

    Boto3 is for AWS api calls.

  • You are not wrong. Aws have exposed a handful of AD calls like create computer but create user or groups is outside of their api.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions