Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Creating User

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Guys,

I have to create 68 users in a day, what is the easiest way to create users. 

Thanks,

Sufyain

*This post is locked for comments

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: Creating User

    Hi Sufyain,

    My suggestion is Powershell as Mahesh, Tharanga and Alexander mentioned.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Creating User

    My best vote is to use PowerShell for creating new users:

    www.youtube.com/watch

    community.dynamics.com/.../creating-users-with-powershell

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Creating User

    You can use powershell for creating users.

    Link : msdn.microsoft.com/.../jj672917(v=nav.90).aspx

    Link 02 : nav-magno.be/.../creating-users-with-powershell

    If you play around you can write an function to repeat the user creation, which will ease your life.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Creating User

    You can also use a query in SQL Management Studio to add new users. This query works for NAV 2016 database schema (I haven't tested it in NAV 2015, but it probably will work). Note that this query must be executed one time per user, this query works only for Windows users, and you would need to change some of the parameters to fit your particular situation. I highlighted the parameters in bold. The first parameter is the database name. The other parameters in bold may be self-explanatory.

    USE [NAVDEMO]

     

    DECLARE @USERSID uniqueidentifier, @WINDOWSSID nvarchar(119), @USERNAME nvarchar(50), @USERSIDTXT varchar(50), @EMAIL varchar(50)

     

    SELECT NEWID()

    SET @USERNAME   = 'WIN-V5E6TMK7C4L\Administrator'

    SET @USERSID   = NEWID()

    SET @USERSIDTXT = CONVERT(VARCHAR(50), @USERSID)

    SET @WINDOWSSID = 'S-1-5-21-3993832035-3231277643-1611983836-500'

    SET @EMAIL = 'email@email.com'

     

    INSERT INTO [dbo].[User]

             ([User Security ID],[User Name],[Full Name],[State],[Expiry Date],[Windows Security ID],[Change Password],[License Type],[Authentication Email],[Contact Email])

       VALUES

             (@USERSID,@USERNAME,'',0,'1753-01-01 00:00:00.000',@WINDOWSSID,0,0,@EMAIL,@EMAIL)

     

    INSERT INTO [dbo].[User Property]

             ([User Security ID],[Password],[Name Identifier],[Authentication Key],[WebServices Key],[WebServices Key Expiry Date],

             [Authentication Object ID])

       VALUES

             (@USERSID,'','','','','1753-01-01 00:00:00.000','')

     

    INSERT INTO [dbo].[Access Control]

             ([User Security ID],[Role ID],[Company Name],[Scope],[App ID])

       VALUES

             (@USERSID,'SUPER','','0','00000000-0000-0000-0000-000000000000')

    INSERT INTO [dbo].[User Personalization]

             ([User SID],[Profile ID],[Language ID],[Company],[Time Zone],[Debugger Break On Error],[Debugger Break On Rec Changes],[Debugger Skip System Triggers],[Locale ID])

       VALUES

             (@USERSID,'SALES ORDER PROCESSOR','1107,'Cronus Australia Pty. Ltd.','FLE Standard Time','1','0','1','1033')

    GO

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Creating User

    You can use RapidStart tool for user creation

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Creating User

    Hi,

    You may use the powershell script:-

    https://nav-magno.be/2015/08/creating-users-with-powershell/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans