I want to configure Dynamics CRM 2011 online so that it shows a specific dashboard by default for a specific user role. Is this possible through some setting or by writing customization code using a plugin or javascript?
For example if John the CEO logs in - he should see the annual revenue dashboard, if a sales person logs in they see the leads dashboard. The dashboards are public dashboards and not personal dashboards.
If you have the on-premise version, probably the fastest way to do this is to access the database table
UserSettingsBase
and update theDefaultDashboardId
column to the guid of the dashboard you want each user to have. (Edit - just realized you're using CRM Online, so this is not applicable.)You can accomplish the same in the API framework by instantiating the
UserSettings
entity for each user, finding each user's appropriateroleid
, and updating theDefaultDashboardID
property of theUserSettings
entity. An example is below.