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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Enable users automatically

(0) ShareShare
ReportReport
Posted on by 4,131

Hi experts,

After DB refresh from production to sandbox environment, all users are disabled except Admin. Is there any way we can run a job or Power Automate to enable users after refresh?

Thanks,

I have the same question (0)
  • Verified answer
    Pawan Upadhyay Profile Picture
    60 on at

    Hi Yes,

    We have similar requirement in our project. we automated the whole process below are some high level steps :

    1) Create Import project in DMF for User entity of D365 F&O.

    2) Export the needed user list in file and save it in Azure devops repository.

    3) Create Azure devops pipeline to execute import project and feed user list created in step 2 to it. please check this link  for more information on how to run import project using Azure devops pipeline.

    Thanks to Adrià for the great article which we can follow.

    Regards,

    Pawan

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Yuji,

    You can follow the suggestion from Pawan or use one of the next options:

    1) Open in Excel. You can use this option to edit the users in an Excel sheet and publish the changes; including the Enabled field.

    2) Use a Power Automate flow.

    For these two options, you need to think of a way to exclude users which are on purpose not enabled. Probably, you can first export the current state of users. Power Automate can read an Excel file and use this information to update selected users only. In the option provided by Pawan, this is a mandatory step.

  • Yuji Profile Picture
    4,131 on at

    Hi Pawan,

    Do you know if I upload the file to Azure DevOps Repository, how can I access the file from the PowerShell?

    Thanks,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans