O'Reilly logo

Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing users and user permissions

Managing user accounts and user permissions is another common task for a system administrator. With PowerShell cmdlets in NAV, this important task can also be automated.

How to do it...

This recipe shows the steps to use PowerShell to create a user account and extend the user permissions.

  1. Run the NAV 2016 Administration Shell with administrator credentials.
  2. Create a user account with NavUserPassword authentication:
    New-NAVServerUser -ServerInstance DynamicsNAV90 `
    -UserName TESTUSER `
    -Password (Read-Host "Enter user password: " -AsSecureString)`
    -ChangePasswordAtNextLogOn
    
  3. When you run the cmdlet, you will be requested to enter a password for the new user:

  4. Assign the permission set BASIC to the user account TESTUSER ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required