Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to track Dynamics 365 logged in users in plugin

Posted on by Microsoft Employee

I am working on a plugin that distribute emails between members of a specified team using round robin distribution. The emails are to be routed among members of the team that are logged in. I am having difficulty in tracking the logged in members of the team in my plugin.

Anyone familiar with how this could be accomplished?

Thanks.

Regards,

Kolawole

*This post is locked for comments

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: how to track Dynamics 365 logged in users in plugin

    Alternatively, you can create a custom Boolean field on the User entity. Let’s say “Is User Logged In ?” so in your plugin you can identify the Logged In users in the CRM using this field.

     

    One more thing, you need to write a code to update this “Is User Logged In ?” field. For this, you can add a Button on the Dashboard, so whenever a user logged into the System, he/she has to clicked on the Button and we need to write a code to update “Is User Logged In ?” field as “YES”. With same while logging out, the user has to click on the same button and code will update “Is User Logged In ?” field as “NO”.

     

    Hope this helps!

    If this answered your question, please make sure to Mark this as an Answer.

    Thanks!

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: how to track Dynamics 365 logged in users in plugin

    I don't think there's any easy way to do this. You can enable UserAccess auditing to identify when users login, but the most frequent that this can be set at is every hour. However, the biggest problem is that you have no good way to identify when a user has logged out

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans