I've seen that is possible to share a SharePoint item creating a password protected anonymous link.
I have a document library in my team site where I have about 300 folders. Each folder is specific for a user that is not part of my domain. So my idea was to programmatically create password protected anonymous links and then send a mail to each user with its own link to a specific folder and provide the password.
I've seen there is CreateAnonymousLink method, but it seems not supported the password protection creation yet.
Is that correct or is it just not documented? Is there any way to do this via REST API or with other methods (e.g. PowerShell)?