Tree view component on the vision client

hello.
To access the windows of my project, I used a tree view component, I want some users not to see some windows. can somebody help me how to do that. thanks you

The component constructs the tree from the contents of a dataset. If you need the display to be dynamic, you will need to bind that dataset to a source of rows that will show what you want. Perhaps a named query binding whose WHERE clause takes a code derived from the groups the user belongs to. That would be simplest for most cases. Or you could use scripting to generate the dataset from scratch based on the user’s privileges.

can you help me with an example please