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!

已提问 7 个月前190 查看次数
1 回答
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
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则