Hi, Conditions for hiding UI actions from End users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:56 AM
Hello Everyone,
I'm looking for guidance on configuring UI actions so that the UI actions should not visible for end users or users without any roles. What are the required conditions to ensure that UI action are hidden from end users?
Thanks in advance
- Labels:
-
Architect
- 931 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 07:01 AM
Adding a role into the inline list "requires roles" is an option. Or calling gs.hasRole('role_name') in the condition field.
Another option is calling current.canWrite() to see if they have write access to the record. This'll depend on whether the end-user only has view only access or not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 09:40 AM
How can I define end user like gs.hasRole('role_name'). Here what role I need to give in the place of 'role_name'?
Thanks for prompt response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 09:45 AM - edited 10-28-2024 09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 09:46 AM
Hi @Ravi Peddineni User who don't have any role in the system