Is there a way to hide one component in the lading page of agent workspace dashboard for a specific

Roshini
Giga Guru

I have a requirement to hide security incidents components in the landing page of agent workspace for a specific user. Is there a way to hide in such a way that won't affect globally. Or else is there a way that the user can personalize the agent workspace dashboard of landing page.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Roshini 

please add screenshot using the browse feature as adding image in post is currently not working in community.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Shruti
Mega Sage
Mega Sage

Hi,

It is possible to hide components for specific users on a landing page.

Example - Hide a component for a specific group members

1. Open workspace landing page in UI builder

2.  Create a data resource " Look up multiple records"

Shruti_0-1753263310536.png

3. 

Shruti_1-1753263381062.png

 

Apply filter conditions with appropriate group name

Shruti_2-1753263436360.png

 

4.  Configure component visibility and update the data resource name to the below script

Shruti_3-1753263626339.png

 

/**
 * @Param {params} params
 * @Param {api} params.api
 * @Param {TransformApiHelpers} params.helpers
 */
function evaluateProperty({
    api,
    helpers
}) {
    let arr = api.data.look_up_multiple_records_1.results;   
    if (arr.length > 0) {
        return true;
    } else {
        return false;
    }

}

 

 

Hi Shruti,

Thanks for your reply, but am unable to find a place to perform the first step. Below is the landing page view in UI builder. Can you guide me further to reach first step

Roshini_0-1753331865290.png

 

Hi @Roshini 

Is it SOW workspace? Can you please share the screenshot of the components that you are trying hide from the landing page