- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
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.
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:
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.