DEV Community

Max Katz for Okta Workflows

Posted on • Originally published at maxkatz.net on

How to Fix a 403 Forbidden Error When Using Search Systems Logs Card

Okta Workflows how-to guides are questions and answers from weekly community office hours, MacAdmins Workflows Slack channel, and other places.

Read all the other how-to guides ⤵️

On to the question.

How to fix 403 Forbidden error when using Search Systems Logs card?

Okta – Search Systems Logs card allows you to search the Okta log by a keyword (and also expression, set in Options ):

Search Systems Logs card

Search Systems Logs card

When a run a flow with this card, you might get a 403 Forbidden error:

403 Forbidden error with Search Systems Logs card

403 Forbidden error with Search Systems Logs card

To fix this error you need to grand an additional scope to the Okta connection.

  1. From the Admin Console , go to Applications > Applications
  2. Click on Okta Workflows OAuth
  3. Open Okta API Scopes tab
  4. Find okta.logs.read scope and click Grant
  5. For this scope to take affect, you need to reauthorize the connection being used

Granding a scope to a connection

Granding a scope to a connection

After you reauthorize, run the flow again. The card is now able to search the logs:

Search Systems Logs card

Search Systems Logs card

🙏🏼 Thanks to Bryan Barrows (LinkedIn, blog) who helped with this question on MacAdmins Slack channel.


More resources to help you learn :

📺 Short how-to Workflows videos to help you become a better automation builder.

🍭 A collection of helpful Workflows tips.

Top comments (0)