Forum Discussion
Connecting to an API....
Hi Anonymous,
I just created a Power BI report against KnowBe4 for one of our recent campaigns. I had much the same questions as I had not done this before and came across your post when I was searching for answers.
First off, when you enable the Reporting API in your Account Settings ensure you scroll all the way down and hit the save button. Some of their site settings save immediatley when you click on them and others you have to specifically click the save button. When I first enabled the API I was getting not authorized errors like you. I then scrolled all the way down (it's a long way) and saw a Save button. When I clicked that within a few seconds I started getting results.
To get the data I used the Web source. Enter the following:
- Click on the Advanced option
- In the URL Parts textbox enter the desired URL from the KnowBe4 API. Make sure to use https and not http otherwise KnowBe4 will reject it
- In the HTTP request header parameters section, in the left textbox enter "Authorization"
- In the right textbox enter "Bearer APIToken" , substituting your KnowBe4 API Token. Ensure there is a space between Bearer and your token.
That's it. When you click OK you should start seeing data come in.
Hope that helps.
I've been struggling for days trying to get KingswaySoft to connect to the KnowBe4 API and this little tidbit is what finally got the lightbulb on for me and fixed my issue. Thanks. I had built up a quick and dirty Powershell script that did the job but was a bit more crude that what I can accomplish with KingswaySoft.