You need to sign in to do that
Don't have an account?
Ken Koellner @ Engageware
Access to standard:groups icon by non-admin user
I have an aura component that references icons 'standard:user' and 'standard:groups' as I have a list of items that could be either. Both icons work for Admin users. For non-admin users, the Groups icon does not appear. Kinda drives me crazy. Is there some sort of object-level security where regular users can't reference the Group object and that even gets reflected in access to the icon???
Line from aura component...
Line from aura component...
<lightning:icon class="slds-icon slds-icon slds-icon_small slds-icon-text-default" iconName="{!v.IconName}" size="x-small" alternativeText="icon"/>What it is referencing in the Apex Aura controller...
public class LookupResultItem { @AuraEnabled public String Name; @AuraEnabled public String Id; @AuraEnabled public String IconName; public LookupResultItem(SObject myObject) { Name = (String)myObject.get('Name'); Id = (String)myObject.get('Id'); IconName = (Id.startsWith('005')) ? 'standard:user' : 'standard:groups'; } }