Forum Discussion
Consume Active Directory On-Premuses from Azure Function
- Feb 18, 2022
In case it is on-premise Active Directory (not Azure) , then you may use commands like Disable-ADAccount or Enable-ADAccount in the PowerShell to do it and you may perform a complete automation using PowerShell. However, in case you have to use PowerApps, then include such scripts in the Windows recorder (V1) flows, take a look at https://docs.microsoft.com/en-us/power-automate/desktop-flows/create-desktop.
You may learn more about those PowerShell commands on the following websites:
https://docs.microsoft.com/en-us/powershell/module/activedirectory/disable-adaccount?view=windowsserver2022-ps
https://docs.microsoft.com/en-us/powershell/module/activedirectory/enable-adaccount?view=windowsserver2022-ps
In case it is on-premise Active Directory (not Azure) , then you may use commands like Disable-ADAccount or Enable-ADAccount in the PowerShell to do it and you may perform a complete automation using PowerShell. However, in case you have to use PowerApps, then include such scripts in the Windows recorder (V1) flows, take a look at https://docs.microsoft.com/en-us/power-automate/desktop-flows/create-desktop.
You may learn more about those PowerShell commands on the following websites:
https://docs.microsoft.com/en-us/powershell/module/activedirectory/disable-adaccount?view=windowsserver2022-ps
https://docs.microsoft.com/en-us/powershell/module/activedirectory/enable-adaccount?view=windowsserver2022-ps