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
Hitesh KhannaHitesh Khanna 

how can i restrict user to only classic mode and stop him from accesing lightning. i tried giving permission set with checkbox 'remain in classic only' but its not working

Best Answer chosen by Hitesh Khanna
Suraj Tripathi 47Suraj Tripathi 47
Hi Hitesh,
Greetings!

Yes, you can implement this by disabling it at the profile level.
First, you have to disable in the profile and then assign it to the users who want this.
for refer- https://www.forcetalks.com/salesforce-topic/how-to-restrict-a-user-from-switching-to-classic-from-lightning-and-vice-versa-in-salesforce/

If you find your Solution then mark this as the best answer. 

Thank you!

Regards,
Suraj Tripathi

All Answers

AbhinavAbhinav (Salesforce Developers) 
Hi Hitesh,

Is it happening for only sys admin user or for others users as well?

Thanks!
Suraj Tripathi 47Suraj Tripathi 47
Hi Hitesh,
Greetings!

Yes, you can implement this by disabling it at the profile level.
First, you have to disable in the profile and then assign it to the users who want this.
for refer- https://www.forcetalks.com/salesforce-topic/how-to-restrict-a-user-from-switching-to-classic-from-lightning-and-vice-versa-in-salesforce/

If you find your Solution then mark this as the best answer. 

Thank you!

Regards,
Suraj Tripathi
This was selected as the best answer