web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Wrong number of "Current Users" displayed in Microsoft Dynamics Desktop Client

(0) ShareShare
ReportReport
Posted on by 10

Hello,

The issue we are facing is that, when trying to login to the MS Dynamics GP Client (Desktop application), the number of current users is displayed as a wrong/greater number, than the number of users actually logged in.

For instance, when trying to login, the login screen shows 11 current users - 

pastedimage1592931298055v1.png

Whereas, the number of active users in DYNAMICS..ACTIVITY shows the count as 7.

Same is the count when user activity is checked from - Tools --> Ultilities --> System--> User Activity.

Can anyone tell me why is this behavior observed.

The Current Users count is showing a misleading number and our users are getting puzzled.

Looking forward to some help.

Thanks!

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,157 Most Valuable Professional on at

    I checked the source code and the number is returned by the smGetLoggedInUserCount stored procedure which is counting records in the ACTIVITY table, but is going through a view.

    select count(*) from smUsersLoggedIn   where UserType = X and   UserStatus <> 3     

    Where X is the User Type of the current user, probably 1 for normal users.

    The view smUsersLoggedIn joins the ACTIVITY table with the SY_Users_MSTR (SY01400) so that the User Status and User Type fields available

    select ACTIVITY.USERID as 'USERID', SY01400.UserType as 'UserType', SY01400.UserStatus as 'UserStatus'
    from ACTIVITY
    left outer join SY01400 ON (SY01400.USERID = ACTIVITY.USERID)

    Look at your ACTIVITY table you must have stranded users.

    Regards

    David

  • AmritaSengupta Profile Picture
    10 on at

    Thanks a lot David,

    Your response is very helpful.

    I see that the view smUsersLoggedIn has 10 users with user type 1 (I believe, this is where no. of current users is fetched in the login screen).

    But the Activity table has  7 users logged into the desktop client.

    I believe the extra users should be deleted from the view - smUsersLoggedIn

    Can you please confirm on this?

    Many thanks!

  • AmritaSengupta Profile Picture
    10 on at

    Thanks David, with your query, we could delete the stranded users and free up the licenses.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 515 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 417 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 360

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans