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

Domain Name Change - Windows Authentication - Dynamics SL v2018

(0) ShareShare
ReportReport
Posted on by 35

Hi there.

As part of a Merge and Acquisition - we will be decommissioning DOMAINA and migrating users from DOMAINB. We have a good grasp on the environment - only bit outstanding is Dynamics SL.

Dynamics is currently using Windows Authentication for DOMAINA - we need to change this to DOMAINB for all our users.

What is required, both on the SQL and Dynamics side to allow for a smooth transition?

Does anyone have a QUERY that we can use to transition both permissions and Windows Logins to the new format?

1) When I look at the DBs in SQL, I see that each user explicitly has access to the sys/app DBs, ie: DOMAINA\jsmith. - Do we start adding duplicate records for DOMAINB\jsmith?

2) I notice that the 'CompanyNameSys' database has a UserRec table which appears to have various fields which are for the UserName/WindowsUserAcct. Is it as simple as updating these records? Do we need to perform any additional steps after making these changes?

3) We have a small set of users (15) - would it be just as easy to do this in the UI over SQL?

Assuming these changes would need to be done PRIOR to the cutover to ensure we do not get locked out?

Anything else we need to consider prior to making the cut over?

Appreciate your help!

Thank you.

M.

  • Magnified Profile Picture
    35 on at
    RE: Domain Name Change - Windows Authentication - Dynamics SL v2018

    Did your steps above today for our migration, worked beautifully.

    Thanks again for your help.

    Mike

  • Magnified Profile Picture
    35 on at
    RE: Domain Name Change - Windows Authentication - Dynamics SL v2018

    Thanks for the prompt reply, appreciated.

    Seems pretty straightforward.  We're just updating the WindowsUserAcct for all users - then synchronizing those changes back to the DB.

    Anything else we may be overlooking as it relates to Dynamics SL?

    Sorry - I'm not a direct user of the product - just assisting with the migration.

  • Suggested answer
    Mark E Profile Picture
    6,437 on at
    RE: Domain Name Change - Windows Authentication - Dynamics SL v2018

    First, I would use SL to remove any SL UserIDs that are no longer valid (meaning the individuals are not part of DOMAINB).

    Then you can manually update the Domain in the UserRec table by doing UPDATE CompanyNameSys.dbo.UserRec SET WindowsUserAcct = REPLACE(WindowsUserAcct, 'DOMAINA','DOMAINB') WHERE RecType = 'U' and WindowsUserAcct LIKE '%DOMAINA%' in SQL.  Then you will need to run the SL Database Maintenance process to Synchronize All Database Ownership and Security so that the updated SL users get the proper SQL Security settings in the database. This will add the DOMAINB users to SQL, and check the user accts against Windows for validity (which is why you would want to remove any non-exisitent DOMAINB users).

    Furthermore, you may want to manually remove the old SQL DOMAINA accts from the databases and the server SQL logins.

    You would have to do this during your domain cutover, unless you have a test environment for SL and SQL that you can use first.

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,097 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,872 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans