Hello
I have next variables and need to get role_ids where should be all role.id where
role.label == user.role_labels
like this: role_ides = [ 1111, 3333 ]
cloud_config = {
"role" = [
{
id = 1111
label = "tf_role1"
permission_ids = [60, 63, 69, 74, 235]
},
{
id = 2222
label = "tf_role2"
permission_ids = [60, 63, 69, 74, 235]
},
{
id = 3333
label = "tf_role3"
permission_ids = [60, 63, 69, 74, 235]
}
]
"user" = [
{
role_labels = [
"tf_role1",
"tf_role3",
]
user_group_label = "tf_uz"
bucket_label = "tf_bucket"
}
]
}
role_ids = ???
}```