Forum Discussion
Sharing Links and Move Operations
I've got the following scenario:
User has Contribute access in 2 sites and can move most files between them but the operation was failing on one. After a bit of investigation I've managed to replicate and it comes down to the file having had a Sharing Link created, if you try the operation through Flow it throws an "Access is denied at
" error so my assumption is Contribute isn't high enough to access an underlying group relating to the Sharing Link.
I've removed the Sharing Link but the operation is still failing - is anyone aware of anything left against a file/item even after a link has been deleted? Or has anyone come across this scenario before and has a workaround?
2 Replies
- MagnusGoksoyrOLDProfileBronze Contributor
Euan Eddie Have you checked this particular file so that someone, in connection with the sharing, has not set unique rights on it and is set to Read?
- Euan EddieCopper ContributorThe issue appears to be that even after a sharing link has been deleted, there are two pieces of metadata (SharedWithDetails and SharedWithUsers) that remain attached to the file. Contribute access does not appear to be enough to carry this metadata over with the Move operation for some reason, but the values can be removed through PowerShell/REST.
In my case, I'm moving files using Power Automate so I can make an http request to remove the values and allow the file to then be moved.