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
AbAb 

few information on lightning tabs are visible to certain profiles and not others

Hello,

I have a tab "Environment" which is added to lightning page.
Few profiles see the details of "information tab" but few dont.

The lightning component (Environment) is added to tab the lighting page as shown.
Environment tab as 3 tabs (3 difflightning component), 1st tab information nd its details are only visible to certain profiles.

even the field inside the tab are not visible.

what can e reason please ?

User-added image
 
enironmenTab.cmp
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
	<aura:attribute name="recordId" type="String"/>
    <lightning:tabset selectedTabId="one">
        <lightning:tab label="Information" id="one">
            <c:TabNameDetail recordId="{!v.recordId}"></c:TabNameDetail >
        </lightning:tab>
    </lightning:tabset>
</aura:component>

thank you for suggestion
Best Answer chosen by Ab
SwethaSwetha (Salesforce Developers) 
HI Sandrine,
Can you please check and make sure your user have to Create, Edit rights on objects and Read/Edit access on individual fields?

Related post: 
https://salesforce.stackexchange.com/questions/239805/i-need-to-restrict-access-to-users-from-seeing-using-lightning-custom-tab
https://salesforce.stackexchange.com/questions/317849/lwc-is-not-working-with-non-admin-profiles

If this information helps, please mark the answer as best. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Sandrine,
Can you please check and make sure your user have to Create, Edit rights on objects and Read/Edit access on individual fields?

Related post: 
https://salesforce.stackexchange.com/questions/239805/i-need-to-restrict-access-to-users-from-seeing-using-lightning-custom-tab
https://salesforce.stackexchange.com/questions/317849/lwc-is-not-working-with-non-admin-profiles

If this information helps, please mark the answer as best. Thank you
This was selected as the best answer
AbAb
I checked, the profile have access to the objects and the fields
Ram Khadap 1Ram Khadap 1
Hi Sandrine,

If we want to show different set of components in Home page for different users, we can use ‘Set component visibility’ feature in lightning App Builder page to show or hide the component in home page. 
Set component visibility: 
Visibility for the component can be set based on  

Logged in User record fields 
Custom Permission 


Using User record to set component visibility .

Choose the component in the Lightning Home Page builder and select set component visibility from left panel 
Click add filter –> Choose Field –> User –> Choose field required to filter (for Ex: Role) 
Provide the value for filter (for Ex: Admin)  
Activate the Page for the app or app – profile 

Using Custom permission to set component visibility 

Step 1: Create a Custom Permission 
Setup –> Custom Permission –> New 
Enter the permission information: 
Label – the permission label that appears in permission sets 
Name – the unique name that is used by the API and managed packages 
Description – optionally, a description that explains what functions the permission grants access to 
Connected App – optionally, the connected app that is associated with this permission 
Click Save 
Step 2: Enable the custom permission to Permission set 
Create new Permission Set or choose an existing one for which you want to enable the custom permission 
In App section –> Choose Custom Permission to include the custom permission in Permission Set 
Select the available custom permission that needs to be enabled for permission set and then click Save 
Assign the permission set to the group of users who needs by clicking Manage Assignment