Don't have Telegram yet? Try it now!
https://nishantrana.me/2020/09/11/d365-ce-get-logged-in-users-security-roles-using-javascript/
D365 CE: Get Logged in User's Security Roles using JavaScript