Hello
I was looking at this article and I wonder could you give me a bit more info or some guidance on how to achieve restricting help-desk users from creating tickets via the Guide "submit a ticket" button.
Our use case is that we would like restrict access to raise a ticket to only a subset of users or a user tag maybe. We do not want this available to everyone who is signed in, only to selected users (or a single group of users).
So for example, in our case we will have standard users and super-users. Only super-users can have the ability to raise tickets via that Guide button. All users, regardless of type should still be able to log in and post comments/post replies in the community or on Guide articles. Perhaps an option might be the hide the 'submit a request' button from everyone (both signed in and non-signed in users), and only show the button to a particular user-group/user-tag/set of users
I saw this example of code in a different topic which seems to provide this functionality, but at an organisation level. I would like to do this but at a user level (e.g. any user tagged with 'superuser'). Is this possible?
CSS:
/* ==================================================== things to hide at start up ==================================================== */ a[href$='requests/new'], a.submit-a-request, .my-activities, #user-menu .my-activities { display: none; }
Javascript:
(function() { var isCust; // find the tag in the array function isCustomer(element, index, array) { return (element === 'my_tag'); }
//go through the HelpCenter object and look for org tags HelpCenter.user.organizations.forEach(function(x) { isCust = x.tags.some(isCustomer); return (isCust === true); });
//is this a customer and show them if (isCust === true) { $('a[href$="requests/new"]').show(); $('.my-activities').show(); $('#user-menu .my-activities').show();
$('a.submit-a-request').show(); } }());
Can you provide some guidance on how to achieve this use case?.
Thanks and Regards
Sean
Hi Jean,
I did some digging in our documentation and I could only find user tags within the user segments endpoint. More information in the following link: User Segments
I'm not sure if this will get you what you're looking for but I hope this helps!