web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / App to disable / enabl...
Power Apps
Answered

App to disable / enable AD accounts from a text file

(0) ShareShare
ReportReport
Posted on by 55

Hello

I am investigating the possibilities of creating an api that will recurringly parse a text file email addresses so that AD accounts are active or disabled.

My Financial director wants to block user AD accounts if timesheets are not filled in on the accounting system. The accounting system can export a text list of user accounts that are not in order. Is it possible for an app to parse the emails / AD names & automate the activation or disable of the accounts in the AD ? Can power apps create GPOs to control the AD?

 

Any thoughts on this "idea" would be most welcome.

Many thanks

Categories:
I have the same question (0)
  • Ana Almeida Profile Picture
    Microsoft Employee on at

    Hello @ChLowden , 

    In the Power Apps, you can use the Azure AD connector.

    1. To export a text list of user accounts, you can use the Get user action to get each email. 

    2. Parse the emails / AD names, https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-json

    3. Automate the activation or disable of the accounts in the AD: not sure if it is possible but you can try with Update user or Remove Member From Group. 

    4. Can power apps create GPOs to control the AD? 

    I think the answer is no, but you can explore this article: https://powerapps.microsoft.com/en-us/blog/implementing-role-based-permission/ 

     

    Best regards,

    Ana Almeida | Power Platform Support Engineer

  • Verified answer
    ChLowden Profile Picture
    55 on at

    Hello Analmei

    Thank you for your response. Lots to read and learn. I will try to get my head around all this.
    Many thanks

    Christopher

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard