Feb 18 2022 05:54 AM
Hello everyone,
Introduction
I have to develop a functionality for an Power App, this powerapps have to disable or enable user accounts in the On-Premises Active Directory for it I was thinking to create an Azure Functions that consume this through and Hybrid Connection or VPN.
I was reseraching but I'm not clear which aproach is the best.
Thanks in advance!
Feb 18 2022 07:17 AM
SolutionIn 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 Learn to create Windows recorder (V1) flows - Power Automate | Microsoft Docs.
You may learn more about those PowerShell commands on the following websites:
Disable-ADAccount (ActiveDirectory) | Microsoft Docs
Enable-ADAccount (ActiveDirectory) | Microsoft Docs
Feb 18 2022 07:17 AM
SolutionIn 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 Learn to create Windows recorder (V1) flows - Power Automate | Microsoft Docs.
You may learn more about those PowerShell commands on the following websites:
Disable-ADAccount (ActiveDirectory) | Microsoft Docs
Enable-ADAccount (ActiveDirectory) | Microsoft Docs