Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Dynamics NAV subscription license limitations

(0) ShareShare
ReportReport
Posted on by

Hi there,

I've dynamics nav subscription license. That allows 4 full users to log in to NAV application. But it allows to log in 5 users as well.

So I need to restrict this.

How to know a number of licensed users count via some SQL query or C/AL code?

Please suggest achieving this.

*This post is locked for comments

  • Suggested answer
    Lars Hædersdal Profile Picture
    Lars Hædersdal 750 on at
    RE: Dynamics NAV subscription license limitations

    Why do you want to limit it?

    When you buy a subscription license it also includes one partner and one accountant access for free. So in your case 6 persons can log on.

    If you create one partner and one accountant account in NAV beside the 4 "real" users you cannot create more users without adding extra users in the licens.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: Dynamics NAV subscription license limitations

    You can check in the Active Session Table or use the PowserShell Command from Administration Shell Get-NAVServerSession and will list all the opens sessions

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Dynamics NAV subscription license limitations

    You can check user session in NAV directly from Development Environment or via C/AL querying the Active Session table.

    Via T-SQL:

    SELECT * from [Active Session];

    Via Powershell:

    1. $NAVID = 100
      Import-module "${env:ProgramFiles}\Microsoft Dynamics NAV\$NAVID\Service\NavAdminTool.ps1" -force -ErrorAction Stop -WarningAction SilentlyContinue -Verbose:$false  | out-null
      $ServerInstances = Get-NAVServerInstance 
      foreach ($ServerInstance in $ServerInstances)
      {
          foreach ($Attribute in $ServerInstance.Attributes) 
          {
              IF ($Attribute.Name -eq 'ServerInstance')
              {
                  $Session += Get-NAVServerSession -ServerInstance $Attribute.Value -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
              }
          }
      }
      IF ($Session) 
      {
          $Session | Out-GridView
      }
    2. Check if the $NAVID setting is valid (e.g. 90 = NAV 2016, 100 = NAV 2017, 110 = NAV 2018)
    3. Execute the code by pressing F5
    4. You will see a list of all users currently logged in Dynamics NAV.

    Note: This script shows all loggend users over all NAV Server-instances.

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans