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!

posta 7 mesi fa190 visualizzazioni
1 Risposta
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
con risposta 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande