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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠