Flows - Avoid loop when running flows published as web applications

Flows - Avoid loop when running flows published as web applications

81
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:52 PM


Objective


It can happen that users are not able to run flows published as web applications. Instead, once the user clicked on the published flow in the user portal, a new tab will be opened but the flow will never run, instead it will keep loading. It usually happens when the number of Identity roles assigned to the user attempting to run the flow is too high. This article explains how to workaround this issue.



Environment


Identity Flows

Procedure


As mentioned in the introduction of this article, the root cause of the issue is the high number of roles assigned to the user.

Every time a flow is published as a web application, the same structure is generated for the ID token:

Although Flows must get the roles of the user from the token, it only needs the names of the roles.

In the structure of the token displayed above, two claims provide this information:

  • 'user_roles' provides the names of the roles the user belongs to
  • 'Roles' provides the names and the ID of the roles the user belongs to

To decrease the size of the token without losing the information that Flows needs to properly authorize the user, simply comment the 'Roles' claim as below, then hit the Save button:

Users should now be able to run flows published as web applications.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000oUlCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail