FetchSharepointMetadata 2025.10.9.21

Bundle

com.snowflake.openflow.runtime | runtime-msgraph-nar

Description

For each drive item retrieves its metadata and permissions and writes them as FlowFile attributes.

Tags

cdc, document, graph, library, microsoft, openflow, sharepoint, unstructured

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Authentication ServiceThe service that provides authentication for the SharePoint API
Drive IDA drive id where the Sharepoint file resides
Fallback Retry DurationThe time to wait before retrying the operation after a communication failure. This value is used when the response doesn’t contain a Retry-After header.
Fetch Item PermissionsIf true, the Processor will fetch user and group permission information for the captured Sharepoint item.
Item IDAn id of an item to retrieve the metadata for
Item Permissions To FetchA comma-separated list of permission types to fetch for the captured Sharepoint item. Available permission types: USER, GROUP, SITE_USER, SITE_GROUP.
Site IDA site id where the Sharepoint file resides

Relationships

NameDescription
comms.failureA FlowFile is routed here if the processor failed to communicate with the Graph API. Can be retried
failureAn incoming FlowFile is routed to this relationship if the metadata and permissions of the item could not be fetched
not.foundA FlowFile is routed here if the item was not found
successAn incoming FlowFile is routed to this relationship after the metadata and permissions of the item have been fetched and written to the FlowFile attributes

Writes attributes

NameDescription
sharepoint.item.idThe ID of the Sharepoint item.
sharepoint.item.typeThe type of the Sharepoint item. Possible values are ‘File’ and ‘Folder’.
sharepoint.pathThe path of the Sharepoint item. This is the path relative to the root of the Document Library.
sharepoint.filenameThe name of the Sharepoint item. This attribute is not available for ‘Deleted’ changes.
sharepoint.sizeThe size of the Sharepoint item.
sharepoint.createdAtThe creation timestamp of the Sharepoint item.
sharepoint.lastModifiedThe last modified timestamp of the Sharepoint item.
sharepoint.createdBy.<identity>.idAn id of the identity that created the Sharepoint item. This attribute is not always available.
sharepoint.createdBy.<identity>.displayNameA display name of the identity that created the Sharepoint item. This attribute is not always available.
sharepoint.createdBy.<identity>.emailAn email of the identity that created the Sharepoint item. This attribute is not always available.
sharepoint.lastModifiedBy.<identity>.idAn id of the identity that modified the Sharepoint item last. This attribute is not always available.
sharepoint.lastModifiedBy.<identity>.displayNameA display name of the identity that modified the Sharepoint item last. This attribute is not always available.
sharepoint.lastModifiedBy.<identity>.emailAn email of the identity that modified the Sharepoint item last. This attribute is not always available.
sharepoint.drive.idThe ID of the Sharepoint Drive that contains the item.
sharepoint.site.idThe ID of the Sharepoint Site that contains the item.
sharepoint.ctagThe CTag of the Sharepoint item.
sharepoint.etagThe ETag of the Sharepoint item.
sharepoint.webUrlThe browser view url of the Sharepoint item.
sharepoint.permissions.read.groupsA comma-separated list of groups that have read permissions on the Sharepoint item. For each group, if an e-mail address is available in Sharepoint, it will be included. Additionally, the group principal, such as mygroup@mytenant.onmicrosoft.com, is included.
sharepoint.permissions.read.groups.idsA comma-separated list of group IDs that have read permissions on the Sharepoint item.
sharepoint.permissions.read.usersA comma-separated list of users that have read permissions on the Sharepoint item. For each user, if an e-mail address is available in Sharepoint, it will be included. Additionally, the user principal, such as johndoe@mytenant.onmicrosoft.com, is included.
sharepoint.permissions.read.users.idsA comma-separated list of Microsoft365 user IDs that have read permissions on the Sharepoint item.
sharepoint.permissions.read.siteusersA comma-separated list of Sharepoint site user emails that have read permissions on the Sharepoint item.
sharepoint.permissions.read.siteusers.idsA comma-separated list of Sharepoint site user IDs that have read permissions on the Sharepoint item.
sharepoint.permissions.read.sitegroups.idsA comma-separated list of Sharepoint site group IDs that have read permissions on the Sharepoint item.
filenameThe name of the Sharepoint item.
pathThe path of the Sharepoint item. This is the path relative to the root of the Document Library.
mime.typeThe MIME type of the Sharepoint item. This attribute is only available for ‘File’ items.
hash.quickxorThe QuickXor hash of the Sharepoint item. This attribute is not always available.
hash.sha256The SHA-256 hash of the Sharepoint item. This attribute is not always available.
hash.sha1The SHA-1 hash of the Sharepoint item. This attribute is not always available.
hash.crc32The CRC32 hash of the Sharepoint item. This attribute is not always available.