Question about Dynamic Default parameter

Hi, I have a question about using dynamic parameter:

Can I combine user and group in 1 dataset for using Dynamic Default parameter

For example, I have user A and group G

Can I have a dataset:

viewed_by | default_value
’A’ | ‘X’

‘G’ | ‘Y’

In case of user A not in group G, the ‘X’ value will be showed.

In case of user A belongs to the group G, the ‘Y’ value will be showed

Hi @baduong,

To my understanding, while you can use two values to handle the Dynamic Default Parameter, I’m not quite sure it can be handled in this way. Take a look at the following documentation, there’s a section towards the bottom that explores creating a dataset for multivalue DDP:

In your instance, I wonder if this would need to be handled by RLS instead:

When I have combine both group and username in 1 field. The parameter doesn’t understand the group_name.

For some reason, I couldn’t use RLS in this use case

Hi @baduong,
Could you explain that a bit further in depth, from your original example, it looked like they are presented as two different fields? What do you mean by combining them?
In terms of RLS and linking it to your example, you would need to setup the RLS based on the group field. So if they have access to a certain group, it will show or not show the values they have access to.

Hi @baduong. Checking in. We have not heard back from you regarding your question. We’d still like to help. If we do not hear back in the next 3 days, we will archive the question.

Hi @baduong,

Since we have not heard back further, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community.

Thank you