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!

demandé il y a 7 mois190 vues
1 réponse
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
répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions