Based on your description, do you mean that you would like to set the permission of the file to just open and view in Onedrive for work or school?
If so, this article "Share OneDrive files and folders" may helps.
Any misunderstandings or updates, please let me know.
If an Answer 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.