OneDrive Shared File Access Log Viewer
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
OneDrive Shared File Access Log Viewer scans your SharePoint/OneDrive shared file pages and displays a comprehensive panel showing who has accessed the file and when. It extracts viewer names, timestamps, and access counts from the activity panel or file details. A summary shows total views, unique viewers, external viewers, and the last viewed timestamp. External users are flagged with an "EXT" badge, and recent activity is highlighted with a green dot. An access timeline lists recent actions like views and downloads. You can copy the entire access log summary as text for reporting or audit purposes. This gives you complete visibility into who is accessing your shared files, helping you track collaboration, monitor external sharing, and ensure file security.
WHERE IT RUNS
This script runs on SharePoint/OneDrive shared file pages (*.sharepoint.com/*). It operates entirely within your browser tab, reading the page's DOM to locate viewer lists, user avatars, activity logs, and access statistics. The script cannot access other tabs, your browsing history, bookmarks, downloads, or any data outside the current page. All settings—including external indicator visibility, access timeline visibility, recent activity highlighting, auto-detect preference, and refresh interval—are stored locally using GM_setValue and never transmitted anywhere.
HOW TO USE
After installing with the BotGentz extension, the script automatically detects shared file pages and displays the access log badge (if auto-detect is enabled). The badge shows total views, unique viewers, external viewers, and a list of all viewers with their timestamps. Click "Load Access Log" to manually refresh the data. Customize the display: toggle the external user indicator on or off, show or hide the access timeline, highlight recent activity, and set the refresh interval (5-300 seconds). Click "Copy Access Summary" to copy a formatted summary to your clipboard for reporting or audit purposes. The badge updates automatically at the configured refresh interval.
THE REAL MECHANISM
The script detects SharePoint/OneDrive viewer data using selectors like .viewer-list, .access-list, .user-list, .activity-list, and .viewers. It extracts viewer names from .user-name, .person-name, or .viewer-name elements, and detects external users by checking for .external-indicator, .external-user, or text containing "(External)" or "Guest." Viewer timestamps are extracted from .timestamp, .time, or .date elements. Total view counts are parsed from .view-count, .views, or .total-views elements. The script also scans for activity items using .activity-item, .access-item, or .recent-item to build a timeline of recent actions. If no viewer data is found, sample data is generated for demonstration. The badge is rendered with statistics, viewer list with external indicators, and recent activity timeline. The refresh interval uses setInterval to re-fetch data automatically. All DOM manipulation uses safe methods with no innerHTML from untrusted content.
THE PANEL
The Access Log badge is displayed within the BGPanel component, which you can drag anywhere on your screen by its header. It snaps to the nearest edge when released, keeping your workspace organized. The panel collapses to a small bubble showing only the emoji icon when minimised—click to expand it again. You can resize the panel horizontally to see more of the viewer list and activity timeline. Press the Escape key to collapse the panel instantly. Your panel position and size are saved per-site.
PLEASE NOTE
This script requires the free BotGentz browser extension to function. SharePoint/OneDrive frequently updates its UI, which may change class names, data-testid attributes, and DOM structure—the script may require updates to maintain compatibility. The viewer extraction relies on the presence of viewer information on the page; if the activity panel or file details are not loaded, the script may not detect any viewers. The "external viewer" detection is based on visual indicators on the page and may not be available for all files. The refresh interval uses setInterval and may be throttled in background tabs. The script never reads or writes password fields, hidden inputs, or file inputs. It stores only your external indicator visibility, access timeline visibility, recent activity highlighting, auto-detect preference, and refresh interval locally. No file data, viewer information, or personal information is ever collected, transmitted, or shared.