Skip to main content

spo folder sharinglink get

Gets details about a specific sharing link on a folder

Usage

m365 spo folder sharinglink get [options]

Options

-u, --webUrl <webUrl>

The URL of the site where the folder is located.

--folderUrl [folderUrl]

The server- or site-relative decoded URL of the folder. Specify either folderUrl or folderId but not both.

--folderId [folderId]

The Unique ID (GUID) of the folder. Specify either folderUrl or folderId but not both.

-i, --id <id>

The sharing link ID.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Gets a specific sharing link of a folder by id.

m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderId daebb04b-a773-4baa-b1d1-3625418e3234

Gets a specific sharing link of a folder by url.

m365 spo folder sharinglink get --webUrl https://contoso.sharepoint.com/sites/demo --id 45fa6aed-362f-48b1-b04e-6da85a526506 --folderUrl "/sites/demo/shared documents/folder"

Response

{
"id": "d6f6a428-9857-471f-9635-edd68d5aa6c1",
"roles": [
"write"
],
"shareId": "u!aHR0cHM6Ly9uYWNoYW4zNjUuc2hhcmVwb2ludC5jb20vOmY6L3MvU1BEZW1vL0VxXzlYcXRIdks1RW9wd3NfX1kteko0QlNybFFNUy1qUTBFOWJsazhVLVNTdVE",
"hasPassword": false,
"grantedToIdentitiesV2": [],
"grantedToIdentities": [],
"link": {
"scope": "anonymous",
"type": "edit",
"webUrl": "https://contoso.sharepoint.com/:f:/s/demo/Eq_9XqtHvK5Eopws__Y-zJ4BSrlQMS-jQ0E9blk8U-SSuQ",
"preventsDownload": false
}
}
CTRL + M