Unable to get user data for in AWS AD service by api.

0

Hi Team,

I'm facing issue with getting user details like mail and other information with AWS managed AD. I'm following https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ds.html but didn't found any api/method to get user data. What is requirement ? I need to change user password and notify user on mail and used below method to change password but unable to get user mail to notify.

response = client.reset_user_password(
    DirectoryId='string',
    UserName='string',
    NewPassword='string'
)

Please help or suggest approach to resolve it. Thanks!

asked 7 months ago180 views
1 Answer
0

Hello there,

I understand you would like to get user data for in AWS AD service by API.

Unfortunately, getting Domain User info is not possible using API. These are the list of actions that can be done using an API call https://docs.aws.amazon.com/directoryservice/latest/devguide/API_Operations.html

To get user info, you can alternatively use Power Shell Commands but you would have to run on Domain Controller or from a remotely domain joined system https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-aduser?view=windowsserver2022-ps

AWS
answered 7 months ago

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