In the portal, how can I detect if a user is in a particular group of requesters?
I want to display a particular button but I want it to be available for only a requester group with the name “tech support” after they logged in to the portal. How can I do so?
I know to detect when logged in is using
{{#if portal.logged_in}}
but how can I detect if they are in the requester group “tech support”? Thanks
Page 1 / 1
What button are you trying to display? is it a button in the agent portal? is it a service item? you might be able to do this in business rules or natively.
Has anyone found a solution to this where Businuess Rules or Card Visibility is not a viable solution?
@MDavies There’s a user_info object that has some information stored about logged in user that you can view in the console of the web browser. I don’t think you can access information about the agent groups or requester groups the user is part of, but you can access some information like department. Then using a Handlebars IF statement like in the orignal post you can display sections of the portal based on the user_info properties.
<!-- only show this section to users with job titles--> {{#if user_info.job_title}} <div>