Restrict users from creating reports in Classic UI

Rakshanda Kunte
Tera Contributor

Hi All,

 

We have created the ACL to restrict users from creating reports in Classic UI. But we have to allow them to create a report in Platform Analytics Workspace.

 

Is there any way, we can create anything which is applicable to restrict in Classic UI but should not restrict in Platform Analytics Workspace.

 

Thanks..!!

7 REPLIES 7

yuvarajkate
Giga Guru

Yes, it is possible to restrict report creation in the Classic UI while allowing it in the Platform Analytics Workspace. Create an ACL on the sys_report table with a script that checks the context, such as gs.getSession().getClientData('glide.ui.context'), to allow only Platform Analytics Workspace actions. Alternatively, assign scoped roles specifically for the workspace and restrict Classic UI access with general ACLs. Use the Debug ACLs tool to test and validate the setup.

Example Script for ACL Condition:

 

if (gs.getSession().getClientData('glide.ui.context') === 'platform_analytics_workspace') {
    // Allow action in Platform Analytics Workspace
    answer = true;
} else {
    // Restrict action in Classic UI
    answer = false;
}

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Rakshanda Kunte 

what do you mean by classic UI? Please share screenshots.

you can hide the left nav module for Reporting

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rakshanda Kunte 

 

If I'm not mistaken, the classic UI for reports is no longer available in the Xanadu release. Instead of creating technical debt, you can educate the users on the new approach.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

Thanks for your inputs.

I tried this in my PDI. I upgraded my instance to Xanadu version. 

Opened Migration center, migrated all reports and dashboards to Platform Analytics.

 

Searched for Reports and Dashboards in Filter Navigator.

For Reports>> View/Run >> It went to data visualization (worked as expected)

For dashboards>> It went to dashboards in PA (worked as expected)

 

However, when I searched 'report' and clicked on 'Create New' it went to core UI view

 

Any thoughts, why did this happen?

 

RakshandaKunte_0-1736761845767.png

 

RakshandaKunte_1-1736761882531.png

 

 

 

Thank you.