Users see the error/alert message as "A component Error has occurred" when they access a Salesforce page that has a Lightning component to which they do not have access to.


Let's say that you have a User Profile that has multiple users, only some of whom have access to Time Tracker licenses. A user with the same profile that is not added in the Manage license list for Time Tracker will see the alert message "A component Error has occurred" when they go to the object to which the lightning component is added.




Let's say that you have an existing User Profile in Salesforce for a group of users. If only a sub-set of this group will be using the Time Tracker, then we suggest that you do the following:


  • Create a Copy/Clone of the User Profile that you assign only to the Time Tracker users 
  • Set the required Time Tracker Lightning components on the objects that you need
  • When you Activate the Lightning component, set this new User Profile as the default.


By doing this, you will ensure that only the Time Tracker users have access to the Lightning components.  


To access the TimeTracker Lightning components in Salesforce:

  • The user should have access to the necessary TimeTracker objects 
  • The user ID should be added to the Manage Licenses list.


If the lightning component is added to an object in Salesforce and set as default for a specific profile, then the users that are added in the Manage License list can use the lightning component. The other users will see the Alert message.


The users can close the error message and use the app normally, but the user will see the same alert message every time they click the object to which the lightning component is added. If you use the separate User Profile for the two sets of users, the users that do not have access to the Lightning component will not see the error message.