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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ