function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ken Koellner @ EngagewareKen 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...
<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';
    }               
}