pnp/cli-microsoft365

New command: `spo list roleassignment list`

開放

#6,187 建立於 2024年7月27日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (399 個分叉)auto 404
good first issuehelp wantedkeep-opennew feature

倉庫指標

星標
 (1,390 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Usage

m365 spo list roleassignment list [options]

Description

Lists all role assignments from a specific list

Options

Option Description
-u, --webUrl <webUrl> URL of the site where the list is located.
-i, --listId [listId] ID of the list. Specify either listId, listTitle, or listUrl but not multiple.
-t, --listTitle [listTitle] Title of the list. Specify either listId, listTitle, or listUrl but not multiple.
--listUrl [listUrl] Relative URL of the list. Specify either listId, listTitle, or listUrl but not multiple.

Examples

Lists all role assignments of a list specified by title

m365 spo list roleassignment list --webUrl "https://contoso.sharepoint.com/sites/Marketing" --listTitle "Branding"

Lists all role assignments of a list specified by ID

m365 spo list roleassignment list --webUrl "https://contoso.sharepoint.com/sites/Marketing" --listId a2baa9d6-ef21-4208-8753-342893c4f0d9

Lists all role assignments of a list specified by URL

m365 spo list roleassignment list --webUrl "https://contoso.sharepoint.com/sites/Marketing" --listUrl "/Branding"

Default properties

  • PrincipalId
  • Member/Title
  • RoledefinitionBindings/Name (comma-separated)

Additional Info

API request

GET https://contoso.sharepoint.com/sites/Marketing/_api/Web/Lists/GetByTitle('Testlib')/RoleAssignments?$expand=Member,RoleDefinitionBindings&$select=*,Member,RoleDefinitionBindings

貢獻者指南