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 previous 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

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

403 Forbidden error with Search Systems Logs card

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

  1. From the Admin Console, go to Applications > Applications
  2. Click Okta Workflows OAuth
  3. Open Okta API Scopes tab
  4. Find the okta.logs.read scope and click Grant
  5. For this scope to take effect, you need to reauthorize the connection being used
Granting 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

πŸ™πŸΌ Thanks to Bryan Barrows (LinkedIn, blog) who helped with this question on the 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.

Leave a comment