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 個回答
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
專家
已回答 4 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南