Assign custom role to the federated user


I have developed a custom user provider and its working. but the issue is with role mappings for custom roles. Do we need to create custom roles in keycloak to map it to the user ? or we can directly map custom roles to the user.

Mohammed Riyas