@Boopathi Subramaniam Thanks for posting in our Q&A. From your description, I know you want to know that what will happen to all files and folders in other user profile when disconnect from work or school account. If there’s any misunderstanding, feel free to let us know.
In our official articles, it lists the information that will be removed after unenrolling . We can read it as a reference. So I think it will not affect the files and folders in other user profile.
https://learn.microsoft.com/en-us/mem/intune/user-help/unenroll-your-device-from-intune-windows
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.