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

Change environment owner

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

When we deployed an environment, the owner was the one who initiate the deployment process in LCS. Is there any way to change the owner of the environment? Because every time we import the DB to that environment, all users got disabled apart from the Admin (environment owner). 

Thanks,

I have the same question (0)
  • Verified answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Yuji,

    You can create a support ticket with MS to do this for you. Don't see any self service option.

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    That's the normal behavior. We usually enable disabled users through a  custom script  . You don't have to change environment owner for it.

    check data elements that aren't copied during refresh on link below 

    docs.microsoft.com/.../database-refresh

  • Yuji Profile Picture
    4,131 on at
    [quote user="Sukrut Parab"]

    We usually enable disabled users through a  script  . You don't have to change environment owner for it.

    [/quote]

    Thanks Sukrut.

    Where to run this script on? RDP to the AOS server?

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

    Hi Yuji,

    You can create a SQL script for this and run it via the SQL server management studio on the VM.

    You can also create a Power Automate flow for this. It should then have the F&O connector setup with the credentials of the environment owner.

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Run your custom script through SSMS by logging in to RDP

  • Verified answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Yuji,

    The link below provides the details of the scripts as well.

    shyamkannadasan.blogspot.com/.../database-refresh-from-prod-to-uat-and.html

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans