-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: m365 spo folder sharinglink add
#5963
Comments
It is supported now indeed. I'll add this to the scope, however this requires another option for the recipients. |
Thanks for the feedback @Adam-it. I have implemented all the suggestions. |
@milanholemans, if I recall, we talked a while ago about formatting nested properties for the |
I think for the time being, it's ok to manipulate the result object for text etc. |
in this case, I would flatten the complex to return also |
Can I work on this? |
Definitely! |
Usage
m365 spo folder sharinglink add [options]
Description
Creates a new sharing link to a folder
Options
-u, --webUrl <webUrl>
--folderUrl [folderUrl]
folderUrl
orfolderId
but not both--folderId [folderId]
folderUrl
orfolderId
but not both--type <type>
--expirationDateTime [expirationDateTime]
--scope [scope]
--retainInheritedPermissions [retainInheritiedPermissions]
--recipients [recipients]
users
Examples
Creates a view-only anonymous sharing link of a folder by id
Creates an edit organization sharing link of a folder by url with a specific expiration date.
m365 spo folder sharinglink add --webUrl https://contoso.sharepoint.com/sites/demo --shareId 123ABC --folderUrl /sites/demo/shared%20documents/Folder --type edit --scope organization --expirationDateTime '2022-11-30T00:00:00Z'
Creates a user sharing link of a folder by id
Default properties
No response
Additional Info
The API call to create a sharing link can be found on the following documentation: https://learn.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0
The text was updated successfully, but these errors were encountered: