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 Risposta
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
ESPERTO
con risposta 4 mesi fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande