No roles found for user
You got this error because you are trying to check permission for a user that don't have any roles assignment.
A solution to the issue
Assign roles to a user with the Permit web application
Utilize the Users Management Screen in the Permit web application to assign roles to users. Ensure the role aligns with the tenant referenced in the permit check.
Assign roles to user via the API
Roles can be conveniently assigned to users via our API documentation.
Assign roles to user via the SDK
Assign roles using our SDKs. Explore the Python SDK, Node SDK, or other available SDKs for more information.