Power BI and Excel
RansomLeak publishes your data as a read-only OData feed. Power BI, Excel and other BI tools that read OData (Tableau, Qlik) connect to it directly, refresh on a schedule and only download what changed.
What’s in the feed
Section titled “What’s in the feed”| Table | One row per |
|---|---|
| Users | Person in your workspace: email, name, job title, team, manager, disabled flag, last sign-in |
| Teams | Team, with its manager |
| LearningPaths | Learning path, with its compliance frameworks |
| Enrollments | Person assigned to a learning path: assigned, due and completed dates, and a status of COMPLETE, OVERDUE or INCOMPLETE |
| Campaigns | Training campaign, with status and start and end dates |
| CampaignParticipants | Person in a campaign: status, progress percentage and dates |
| RiskScores | Person’s current Human Risk Score, band and confidence |
| PhishingEvents | Phishing simulation outcome (clicked, submitted, reported and so on). Needs the phishing simulation add-on |
Tables link by their Id columns (for example Enrollments.UserId → Users.Id). Power BI sets up most of these relationships for you.
1. Create a token
Section titled “1. Create a token”- Go to Integrations → API (you need Manage API) and click Generate New Token.
- Select the Power BI / OData feed scope. Choosing it needs the View Individual Risk permission, because the feed includes every person’s risk score. To include PhishingEvents, also select Phishing Events API. Choosing that one needs the Export Phishing Reports With PII permission.
- Copy the token. It’s shown only once.
The token can read the names and emails of everyone in your workspace, so share it only with the people who build your reports. Revoke it on the same page when you no longer need it.
2. Connect Power BI
Section titled “2. Connect Power BI”- In Power BI Desktop, choose Get Data → OData feed.
- Enter the feed URL for your region:
- United States:
https://app.ransomleak.com/api/odata/v1 - European Union:
https://app.eu.ransomleak.com/api/odata/v1
- United States:
- When asked for credentials, choose Basic. Enter any user name (for example
token) and paste your token as the password. - Pick the tables you want in the navigator and click Load or Transform Data.
The same URL is shown in the app under Integrations → API with a copy button.
Scheduled refresh
Section titled “Scheduled refresh”After you publish the report, open the semantic model’s settings in the Power BI Service. Under Data source credentials, choose Basic and enter the same user name and token. You don’t need a gateway.
For large workspaces, turn on incremental refresh on Enrollments, CampaignParticipants or PhishingEvents. Use AssignedAt, EnrolledAt or OccurredAt as the date column. Power BI then asks only for rows in the refresh window.
Choose Data → Get Data → From Other Sources → From OData Feed and use the same URL and Basic credentials.
RansomLeak connector (optional)
Section titled “RansomLeak connector (optional)”If you’d rather see a RansomLeak tile in Get Data and paste only the token, ask your RansomLeak contact for the connector file (RansomLeak.mez). Copy it to Documents\Power BI Desktop\Custom Connectors. Then, in File → Options → Security → Data Extensions, allow extensions to load. Scheduled refresh with the connector needs an on-premises data gateway. The OData feed above doesn’t.
Good to know
Section titled “Good to know”- Each response holds up to 5,000 rows. Power BI fetches the remaining pages on its own.
- Filters and column choices you make in Power Query are sent to RansomLeak, so only the rows you need are downloaded.
- Learners who only take training through an external LMS (SCORM) don’t appear in the feed.
- If the phishing add-on is off, PhishingEvents is empty.
- The feed allows about 300 requests a minute per workspace. A normal refresh stays well under that. If you go over, Power BI waits a moment and retries on its own.
- Supported filters are comparisons,
and,or,not, and text matching (contains,startswith,endswith, with or without lower-case conversion). If a Power Query step uses another function, such as taking the year of a date, add it after the data loads, or the refresh shows an error. - A
403error means the token is missing a scope. Add the scope to a new token, or use a token that has it.