Open MathijsVerbeeck opened 3 months ago
Currently, using the Graph 1.0 API, it is not possible to modify sharing links of type 'Organizational'.
we should definitely add this to a remark section in the command docs.
Other than that LGTM π. Awesome work π @pnp/cli-for-microsoft-365-maintainers last change to have a π on this before we open it up π
Looks good! @MathijsVerbeeck, do you want to work on this one?
Can I work on it?
Sure, thanks @Saurabh7019
Usage
m365 spo folder sharinglink set [options]
Description
Updates a specific sharing link to a folder
Options
-u, --webUrl <webUrl>
--folderUrl [folderUrl]
folderUrl
orfolderId
but not both--folderId [folderId]
folderUrl
orfolderId
but not both-i, --id <id>
--role [role]
--expirationDateTime [expirationDateTime]
Examples
Updates the expiration datetime of an anonymous sharing link with a specific id.
Updates the roles of a sharing link.
Default properties
No response
Additional Info
The API call to set a sharing link can be found on the following documentation: https://learn.microsoft.com/en-us/graph/api/permission-update?view=graph-rest-v1.0&tabs=http
Currently, using the Graph 1.0 API, it is not possible to modify sharing links of type 'Organizational'.