Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Conditionally Hide Widgets Based on User Roles in Thingsboard? #10739

Open
HuseynA28 opened this issue May 8, 2024 · 0 comments
Open
Assignees
Labels
question generic question

Comments

@HuseynA28
Copy link

Component

  • Generic

Description
I'm working with Thingsboard and need some assistance with controlling the visibility of widgets based on user roles or specific conditions. Specifically, I want to enable or disable the visibility of certain widgets to particular users. For example, I want only certain users to see a widget that directs to another state with more detailed information about users.( It could be that I group the user and add New Telemetry such as person is true , or add this Telemetry for each user and have an access to this variable from Widget to check the telemetry is true or false )

I've tried implementing this using the "Show/Hide action" function, but I'm unsure how to configure it properly within Thingsboard. Here’s an image illustrating my current setup:
Show hide action using function

Could someone guide me on how to achieve this? Any pointers on configuring the function to selectively show or hide widgets based on user roles would be greatly appreciated.

Thanks in advance for your help!

Environment

  • OS: name and version
  • ThingsBoard: version
  • Browser: name and version
@HuseynA28 HuseynA28 added the question generic question label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

2 participants