Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Restore Live to Test Security Transfer

(0) ShareShare
ReportReport
Posted on by

Hello and good day, trying to improve a process and hoping someone can assist.

I need a script that I can run after restoring live to test to assist with clearing the invalid security records that are copied over.

This is in relation to a user having access to live and not test. When the restore of live is done to test company, the user is 'given' access to test but it is invalid access. 

When i try to give the user access to test in GP, the error message comes up stating - user cannot be added to one or more databases. With this, i have to go to SQL, remove the users from the security folder of the test company. 


Does anyone have a script I can use to automate this when a restore of live is being done to test? I am thinking similar to the update company ID script, this script should also be done to fix those orphan logins. 

Categories:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,012 Most Valuable Professional on at
    RE: Restore Live to Test Security Transfer

    Hi Ali

    GP Power Tools Database Validation can fix all the issues with Test Environments or moving servers and much more.

    Install it and activate the free 30 day trial period to have a look.

    Regards

    David

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans