Search code examples
dynamics-crmcrmdynamics-crm-online

Can I register a plug-in on the user login event in Dynamics CRM?


I want to register a plug-in in Plugin Registration Tool when a user logs in to Dynamics CRM. For this I don't want to use Audit. I want to catch the login event directly.

If this is not possible, is there any log that is create in every login of the user.


Solution

  • High level design of what I would do:

    1. Make/identify a default dashboard for all users and keep a HTML web resource in there
    2. Web resource can have a method to invoke Xrm.WebApi.online.execute for executing a Custom Action by passing parameter to include IP, Lat, Lon, Browser details. Read more
    3. Register a plugin on Custom Action message to trigger and achieve what you want there