Hi, I’m trying to return user role as part of the IdToken custom claim. According to the documentation I tried to use one of the template RULE, Add user roles from a SQL Server database. And when I tried to log in and get id token, I got this error:
The “config.server” property is required and must be of type string.
which seems out of my control? Can you suggest a way to fix it?
Ok thanks for the quick reply, I tried the snippet and it works. But I only see the roles in id token is there a way to include also the organizations that the user belongs to and the corresponding permission info in the id token too? Thanks