Skip to main content

Notifications

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!

  • AmritaSengupta Profile Picture
    AmritaSengupta 10 on at
    RE: Wrong number of "Current Users" displayed in Microsoft Dynamics Desktop Client

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

  • AmritaSengupta Profile Picture
    AmritaSengupta 10 on at
    RE: Wrong number of "Current Users" displayed in Microsoft Dynamics Desktop Client

    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!

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,932 Most Valuable Professional on at
    RE: Wrong number of "Current Users" displayed in Microsoft Dynamics Desktop Client

    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

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

News and Announcements

Announcing Category Subscriptions!

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,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans