Jan 10 2022 08:32 AM - edited Jan 11 2022 05:15 AM
I'm trying to share OneDrive files with external users via Powershell, using the Set-PnPListItemPermission from the PnP.Powershell module.
I can successfully share files with other users in the organization, but cannot share with an external user.
$TargetListName = 'Documents'
$FileID = '<OneDriveFileID>'
$ExternalEmailAddress = 'Email address removed'
Set-PnPListItemPermission -List $TargetListName -Identity $FileID -User $ExternalEmailAddress -AddRole 'Read'
Thanks in advance.
Jan 11 2022 10:18 AM
Jan 11 2022 10:47 AM
The user is not a guest in Azure AD. When we share a file with an external user with the GUI, it does not seem to invite the user as a guest to our tenant.
If not possible using PnP, do you know how to it with CSOM?
Jan 03 2024 11:29 AM
Olá, obteve algum sucesso