Microsoft_Graph_Files
Use the O365 File Management (Onedrive/Sharepoint/Teams) integration to enable your app to get authorized access to files in OneDrive, SharePoint, and MS Teams across your entire organization. This integration requires admin consent.
Email · Microsoft Graph Files
Configuration parameters
host— Server URL (required)auth_id— Application ID / Client IDcredentials_auth_id—tenant_id— Token / Tenant IDcredentials_tenant_id—enc_key— Key / Client Secretcredentials_enc_key—redirect_uri— Application redirect URI (for Self Deployed - Authorization Code Flow)auth_code_creds—certificate_thumbprint— Certificate Thumbprintcredentials_certificate_thumbprint—private_key— Private Keyself_deployed— Use a self-deployed Azure Applicationuse_managed_identities— Use Azure Managed Identitiesmanaged_identities_client_id—insecure— Trust any certificate (not secure)proxy— Use system proxy settings
Commands (21)
-
msgraph-assign-sensitivity-labelAssigns a sensitivity label to a drive item. Microsoft Graph treats this call as a long-running operation and returns the operation status URL in the Location response header; poll that URL to track completion. HTTP error responses from Microsoft Graph are surfaced verbatim as a command error.
-
msgraph-create-new-folderCreates a new folder in a drive with the specified parent item or path.
-
msgraph-create-site-permissionsCreate a new application permission for a site.
-
msgraph-delete-fileDeletes an item from OneDrive.
-
msgraph-delete-site-permissionsDeletes an app permission from a site.
-
msgraph-download-fileDownloads the file contents of the drive item.
-
msgraph-driveitem-copyInitiates an asynchronous copy of a driveItem (file or folder) within or across drives. Microsoft Graph processes the copy asynchronously and responds 202 Accepted with a monitor URL. Poll the returned MonitorUrl directly against Microsoft Graph (using the same access token) until the body reports status `completed` or `failed`.
-
msgraph-driveitem-permission-deleteDeletes (revokes) a single sharing permission from a driveItem. Returns success when Microsoft Graph responds 204. For bulk-delete loops where intermittent 404s (already removed) are acceptable, enable "Continue on error" on the calling task.
-
msgraph-driveitem-permissions-listLists the sharing permissions on a driveItem. Returns both link-style permissions (anyone-with-link, organization-wide-link, scoped link) and direct grants (per-user / per-group / per-application). The InheritedFrom field is non-null when the permission is inherited from a parent folder.
-
msgraph-driveitem-updateUpdates a driveItem (move within or across drives, rename, or update metadata) by issuing PATCH on the driveItem. At least one of new_parent_id, new_parent_drive_id, new_name, description, or conflict_behavior must be provided.
-
msgraph-files-auth-resetRun this command if for some reason you need to rerun the authentication process.
-
msgraph-files-auth-testTests connectivity to Microsoft.
-
msgraph-files-generate-login-urlGenerate the login URL used for Authorization code flow.
-
msgraph-get-sensitivity-labelRetrieves the sensitivity label currently assigned to a drive item. Returns the label ID, display name, and protection state regardless of whether the label has encryption enabled.
-
msgraph-list-drive-contentReturns a list of files and folders in the specified drive.
-
msgraph-list-drives-in-siteReturns the list of document libraries (drives) available for a target site.
-
msgraph-list-sharepoint-sitesReturns a list of the tenant sites. This command requires the 'Sites.Read.All' permission.
-
msgraph-list-site-permissionsList of apps with permissions for the site. if permission_id is provided, it will return the details of that permission.
-
msgraph-replace-existing-fileReplaces the content of the file in the specified MS Graph resource.
-
msgraph-update-site-permissionsUpdates an existing permission for a site.
-
msgraph-upload-new-fileUploads a file from Cortex XSOAR to the specified MS Graph resource.