Microsoft 365 List

Microsoft 365 List

Certified

List OneDrive/SharePoint folder items

Lists children of a folder (defaults to drive root) and follows Graph pagination until all items are collected. Requires Microsoft Graph permissions Files.Read.All and Sites.Read.All.

yaml
type: io.kestra.plugin.microsoft365.oneshare.List

List files in OneDrive folder

yaml
id: list_onedrive_files
namespace: company.team

tasks:
  - id: list_files
    type: io.kestra.plugin.microsoft365.oneshare.List
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    itemId: "root"

List files in specific folder

yaml
id: list_folder_contents
namespace: company.team

tasks:
  - id: list_folder_files
    type: io.kestra.plugin.microsoft365.oneshare.List
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    itemId: "01FOLDER123456789"
Properties

Drive ID

OneDrive or SharePoint drive identifier required for all OneShare tasks

Client ID

Client ID of the Azure service principal. If you don't have a service principal, refer to create a service principal with Azure CLI.

Client Secret

Service principal client secret. Use this for Client Secret authentication. Provide clientId, tenantId, and clientSecret. Either clientSecret OR pemCertificate must be provided, not both.

Folder ID

DriveItem ID of the folder to list; defaults to root

PEM Certificate

Alternative authentication method using certificate-based authentication.
Use this for Client Certificate authentication. Provide clientId, tenantId, and pemCertificate.
Either clientSecret OR pemCertificate must be provided, not both.

Reference (ref) of the pluginDefaults to apply to this task.

Tenant ID

Default0

Number of files

List of files

Definitions
createdDateTimestring
Formatdate-time
idstring
isFolderboolean
lastModifiedDateTimestring
Formatdate-time
mimeTypestring
namestring
sizeinteger
webUrlstring