A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear Amirah,
Have you found an answer?
If you just want to set a password on a folder, you can just set the sharing link as Anyone type and then set the password and copy and send the link to anyone who wants to open the folder. You can click on ...>Share to add the password.
Please note that the feature is only available for the Anyone type sharing link.
If something is misunderstood, welcome to share any updates at your convenience.
Thanks for your effort and time.
Sincerely
Cliff | Microsoft Community Moderator